Skip to content

Commit

Permalink
[T] bar_COHESIVE_linear as OgsTest().
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Oct 18, 2023
1 parent d95021d commit 5bc3e83
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
20 changes: 6 additions & 14 deletions ProcessLib/PhaseField/Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,12 @@ AddTest(
expected_AT1_vd_tension_2core_ts_10_t_1_000000_1.vtu AT1_vd_tension_2core_ts_10_t_1_000000_1.vtu phasefield phasefield 1e-6 0
)

AddTest(
NAME PhaseField_3D_beam_tens_COHESIVE_linear_es
PATH PhaseField/beam
EXECUTABLE ogs
EXECUTABLE_ARGS bar_COHESIVE_linear.prj
WRAPPER mpirun
WRAPPER_ARGS -np 1
TESTER vtkdiff
REQUIREMENTS OGS_USE_MPI
RUNTIME 300
DIFF_DATA
expected_bar_COHESIVE_linear_ts_11_t_1.100000.vtu bar_COHESIVE_linear_ts_11_t_1.100000.vtu displacement displacement 1e-5 0
expected_bar_COHESIVE_linear_ts_11_t_1.100000.vtu bar_COHESIVE_linear_ts_11_t_1.100000.vtu phasefield phasefield 1e-6 0
)
if(OGS_USE_MPI)
OgsTest(PROJECTFILE PhaseField/beam/bar_COHESIVE_linear.prj
RUNTIME 300
WRAPPER mpirun -np 1
)
endif()

AddTest(
NAME PhaseField_3D_beam_tens_COHESIVE_exponential_es
Expand Down
14 changes: 14 additions & 0 deletions Tests/Data/PhaseField/beam/bar_COHESIVE_linear.prj
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,18 @@
</petsc>
</linear_solver>
</linear_solvers>
<test_definition>
<vtkdiff>
<file>bar_COHESIVE_linear_ts_11_t_1.100000.vtu</file>
<field>displacement</field>
<absolute_tolerance>1e-5</absolute_tolerance>
<relative_tolerance>0</relative_tolerance>
</vtkdiff>
<vtkdiff>
<file>bar_COHESIVE_linear_ts_11_t_1.100000.vtu</file>
<field>phasefield</field>
<absolute_tolerance>1e-6</absolute_tolerance>
<relative_tolerance>0</relative_tolerance>
</vtkdiff>
</test_definition>
</OpenGeoSysProject>

0 comments on commit 5bc3e83

Please sign in to comment.