Added the bubble test

This commit is contained in:
James McClure 2014-03-05 16:00:43 -05:00
parent 7b9361648e
commit 106e2dd110
4 changed files with 2393 additions and 4 deletions

View File

@ -366,7 +366,7 @@ int main(int argc, char **argv)
id[n] = 2; id[n] = 2;
sum++; sum++;
} }
else if (k<BubbleTop && rank == 0){ else if (k<BubbleTop && rank == 0 && pBC == 0){
id[n] = 1; id[n] = 1;
sum++; sum++;
} }
@ -1153,7 +1153,7 @@ int main(int argc, char **argv)
//...................................................................... //......................................................................
// Once phase has been initialized, map solid to account for 'smeared' interface // Once phase has been initialized, map solid to account for 'smeared' interface
//...................................................................... //......................................................................
for (i=0; i<N; i++) SignDist.data[i] -= (1.0); // Add half the interface width for (i=0; i<N; i++) SignDist.data[i] -= (1.0); //
//...................................................................... //......................................................................
//....................................................................... //.......................................................................
sprintf(LocalRankString,"%05d",rank); sprintf(LocalRankString,"%05d",rank);

View File

@ -4,6 +4,7 @@ CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/cylindertest ${CMAKE_CURRENT_BINARY_
# Add the tests # Add the tests
ADD_LBPM_TEST( pmmc_cylinder ) ADD_LBPM_TEST( pmmc_cylinder )
ADD_LBPM_TEST( TestBubble )
ADD_LBPM_TEST( TestCylinderAreas ) ADD_LBPM_TEST( TestCylinderAreas )
ADD_LBPM_TEST( TestSphereCurvature ) ADD_LBPM_TEST( TestSphereCurvature )
ADD_LBPM_TEST_1_2_4( testCommunication ) ADD_LBPM_TEST_1_2_4( testCommunication )

2388
tests/TestBubble.cpp Normal file

File diff suppressed because it is too large Load Diff

View File

@ -366,7 +366,7 @@ int main(int argc, char **argv)
id[n] = 2; id[n] = 2;
sum++; sum++;
} }
else if (k<BubbleTop && rank == 0){ else if (k<BubbleTop && rank == 0 && pBC == 0){
id[n] = 1; id[n] = 1;
sum++; sum++;
} }
@ -1153,7 +1153,7 @@ int main(int argc, char **argv)
//...................................................................... //......................................................................
// Once phase has been initialized, map solid to account for 'smeared' interface // Once phase has been initialized, map solid to account for 'smeared' interface
//...................................................................... //......................................................................
for (i=0; i<N; i++) SignDist.data[i] -= (1.0); // Add half the interface width for (i=0; i<N; i++) SignDist.data[i] -= (1.0); //
//...................................................................... //......................................................................
//....................................................................... //.......................................................................
sprintf(LocalRankString,"%05d",rank); sprintf(LocalRankString,"%05d",rank);