v0.16.3
Loading...
Searching...
No Matches
RunAuxiliaryPatch.cmake
Go to the documentation of this file.
1# Each patch test owns its generated mesh and output.
2execute_process(
3 COMMAND "${EP_MPI_RUN}" ${EP_MPI_RUN_FLAGS} -np 1 "${EP_PATCH}"
4 -json_config auxiliary_logarithmic_stress_patch_prepare.json
5 OUTPUT_FILE prepare.log ERROR_FILE prepare.err RESULT_VARIABLE result)
6if(NOT result EQUAL 0)
7 message(FATAL_ERROR "Patch mesh preparation failed: ${result}")
8endif()
9set(mesh auxiliary_logarithmic_stress_patch.h5m)
10if(EP_RANKS GREATER 1)
11 execute_process(
12 COMMAND "${EP_MPI_RUN}" ${EP_MPI_RUN_FLAGS} -np 1 "${EP_PARTITION}"
13 -file_name "${mesh}" -output_file auxiliary_logarithmic_stress_patch_2p.h5m
14 -nparts 2
15 OUTPUT_FILE partition.log ERROR_FILE partition.err RESULT_VARIABLE result)
16 if(NOT result EQUAL 0)
17 message(FATAL_ERROR "Patch mesh partition failed: ${result}")
18 endif()
19 set(mesh auxiliary_logarithmic_stress_patch_2p.h5m)
20endif()
21execute_process(
22 COMMAND "${EP_MPI_RUN}" ${EP_MPI_RUN_FLAGS} -np ${EP_RANKS} "${EP_PATCH}"
23 -json_config auxiliary_logarithmic_stress_patch_atom.json -file_name "${mesh}"
24 -analytical_expr_file "${EP_PATCH_PYTHON}"
25 -elastic_mat_mumps_icntl_20 0 -elastic_mat_mumps_icntl_14 800
26 RESULT_VARIABLE result)
27if(NOT result EQUAL 0)
28 message(FATAL_ERROR "Homogeneous auxiliary patch failed: ${result}")
29endif()