Skip to content

Commit

Permalink
modify fsi2 case to neglect regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangyu-Hu committed Feb 5, 2022
1 parent 333e98d commit 44ac83e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/2d_examples/test_2d_fsi2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ADD_EXECUTABLE(${PROJECT_NAME} ${DIR_SRCS})

add_test(NAME ${PROJECT_NAME}_particle_relaxation COMMAND ${PROJECT_NAME} --r=true
WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME} --r=false --i=true
add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME} --r=false --i=true --rt=false
WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})

if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
Expand Down
11 changes: 7 additions & 4 deletions tests/2d_examples/test_2d_fsi2/fsi2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ int main(int ac, char *av[])
SharedPtr<ParticleGenerator> inserted_body_particle_generator = makeShared<ParticleGeneratorLattice>();
if (!system.run_particle_relaxation_ && system.reload_particles_)
inserted_body_particle_generator = makeShared<ParticleGeneratorReload>(in_output, inserted_body.getBodyName());
ElasticSolidParticles inserted_body_particles(inserted_body,
makeShared<LinearElasticSolid>(rho0_s, Youngs_modulus, poisson), inserted_body_particle_generator);
ElasticSolidParticles inserted_body_particles(inserted_body,
makeShared<LinearElasticSolid>(rho0_s, Youngs_modulus, poisson), inserted_body_particle_generator);

ObserverBody beam_observer(system, "BeamObserver");
ObserverParticles beam_observer_particles(beam_observer, makeShared<BeamObserverParticleGenerator>());
Expand Down Expand Up @@ -308,8 +308,11 @@ int main(int ac, char *av[])
tt = t4 - t1 - interval;
std::cout << "Total wall time for computation: " << tt.seconds() << " seconds." << std::endl;

write_total_viscous_force_on_inserted_body.newResultTest();
write_beam_tip_displacement.newResultTest();
if (system.run_regression_test_ == true)
{
write_total_viscous_force_on_inserted_body.newResultTest();
write_beam_tip_displacement.newResultTest();
}

return 0;
}

0 comments on commit 44ac83e

Please sign in to comment.