180 {
182 "Mesh tag transfer file fixtures\n");
183 try {
186 std::unique_ptr<TestingInterface> owned_testing(
188 CHKERR owned_testing->addTestCommandLine(
189 "", 1, "prepare", [&]() { return prepare(PETSC_COMM_WORLD); });
190 CHKERR owned_testing->addTestCommandLine(
"", 2,
"copy", [&]() {
191 return checkCopy(*owned_testing, "mesh_data_transfer_copy.h5m",
192 "INDEX_COPY", -1);
193 });
194 CHKERR owned_testing->addTestCommandLine(
"", 3,
"extract", [&]() {
195 return checkCopy(*owned_testing, "mesh_data_transfer_extract.h5m",
196 "INDEX_TEST_4", 4);
197 });
198 CHKERR owned_testing->addTestCommandLine(
"", 4,
"alias", [&]() {
199 return checkCopy(*owned_testing, "mesh_data_transfer_alias.h5m",
200 "INDEX_TEST", -1);
201 });
202 CHKERR owned_testing->addTestCommandLine(
203 "", 5, "nodal", [&]() { return checkTransfer(*owned_testing, true); });
204 CHKERR owned_testing->addTestCommandLine(
205 "", 6, "cell", [&]() { return checkTransfer(*owned_testing, false); });
206 CHKERR owned_testing->addTestCommandLine(
"", 7,
"parallel_copy", [&]() {
207 return checkCopy(*owned_testing, "mesh_data_transfer_parallel.h5m",
208 "INDEX_COPY", -1);
209 });
210 CHKERR owned_testing->runTests();
211 }
214 return 0;
215}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
TestingInterface * createInterface< TestingInterface >(const Core &core)
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.