fixing unit tests

This commit is contained in:
James E McClure 2018-05-24 21:10:08 -04:00
parent 3990db0b79
commit 0d528a465c
3 changed files with 7 additions and 5 deletions

View File

@ -10,6 +10,7 @@ Color {
pBC = 0
din = 1.0
dout = 1.0
flux = 1.0e-3
timestepMax = 200
interval = 1000
tol = 1e-5;

View File

@ -52,8 +52,7 @@ ADD_LBPM_TEST( TestPoiseuille ../example/Piston/poiseuille.db)
ADD_LBPM_TEST( TestForceMoments ../example/Piston/input.db)
ADD_LBPM_TEST( TestForceD3Q19 )
ADD_LBPM_TEST( TestMomentsD3Q19 )
ADD_LBPM_TEST( TestInterfaceSpeed ../example/Piston/input.db)
ADD_LBPM_TEST( TestInterfaceSpeed ../example/Bubble/input.db)
ADD_LBPM_TEST( TestSphereCurvature )
#ADD_LBPM_TEST_1_2_4( TestTwoPhase )
ADD_LBPM_TEST_1_2_4( TestBlobIdentify )

View File

@ -38,7 +38,9 @@ int main (int argc, char *argv[])
std::shared_ptr<Domain> Dm(new Domain(domain_db,comm));
for (i=0; i<Dm->Nx*Dm->Ny*Dm->Nz; i++) Dm->id[i] = 1;
Nx+=2; Ny+=2; Nz+=2;
for (i=0; i<Nx*Ny*Nz; i++) Dm->id[i] = 1;
Dm->CommInit();
@ -137,11 +139,11 @@ int main (int argc, char *argv[])
toReturn = 5;
printf("TestCylinderArea.cpp: error tolerance exceeded for common curve length \n");
}
if ( fabs(Averages->vawn_global(2)+0.2) > 0.01){
if ( fabs(Averages->vawn_global(2)+0.25) > 0.01){
printf("TestInterfaceSpeed: Error too high for kinematic velocity of wn interface \n");
toReturn = 6;
}
if ( fabs(Averages->vawns_global(2)+0.2) > 0.01){
if ( fabs(Averages->vawns_global(2)+0.25) > 0.01){
printf("TestInterfaceSpeed: Error too high for kinematic velocity of common curve \n");
toReturn = 7;
}