v0.16.3
Loading...
Searching...
No Matches
RunCookRestart.cmake
Go to the documentation of this file.
1# Run both relaxation stages in the test's private working directory.
2set(cook_options
3 -file_name examples/cook_cantilever/cook_2p.h5m
4 -space_order 2
5 -material neo_hookean
6 -neo_hookean_c10 0.21
7 -neo_hookean_K 2000.0
8 -grad no_h1
9 -elastic_ts_dt 5e-1
10 -elastic_ts_max_time 1
11 -elastic_snes_atol 1e-9
12 -viscosity_alpha_u 0
13 -alpha_tau 1e2
14 -write_restart 1
15 -dynamic_relaxation 1
16 -dynamic_h1_update 1
17 -dynamic_final_time 4
18 -dynamic_delta_time 5e-2
19 -test_cook
20 -test_cook_pts
21 -log_no_color)
22
23foreach(stage initial restart)
24 if(stage STREQUAL "initial")
25 set(stage_options -dynamic_max_it 2 -dynamic_atol 1e-8)
26 else()
27 set(stage_options
28 -dynamic_max_it 4 -dynamic_rtol 1.1 -restart restart_2.dat -time 0.1)
29 endif()
30 execute_process(
31 COMMAND "${EP_MPI_RUN}" ${EP_MPI_RUN_FLAGS} -np 2 "${EP_EXECUTABLE}"
32 ${EP_MUMPS_MEMORY_OPTIONS} ${cook_options} ${stage_options}
33 RESULT_VARIABLE run_result)
34 if(NOT run_result EQUAL 0)
35 message(FATAL_ERROR "Cook relaxation ${stage} solve failed: ${run_result}")
36 endif()
37endforeach()