v0.16.3
Loading...
Searching...
No Matches
Functions
mesh_data_transfer.cpp File Reference

Independent file fixtures and oracles for the unified transfer tool. More...

#include <MoFEM.hpp>
#include <array>
#include <cmath>
#include <limits>
#include <memory>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Independent file fixtures and oracles for the unified transfer tool.

Definition in file mesh_data_transfer.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 180 of file mesh_data_transfer.cpp.

180 {
181 MoFEM::Core::Initialize(&argc, &argv, nullptr,
182 "Mesh tag transfer file fixtures\n");
183 try {
184 moab::Core mb;
185 MoFEM::Core core(mb);
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}
moab::Interface & mb
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
TestingInterface * createInterface< TestingInterface >(const Core &core)
Core (interface) class.
Definition Core.hpp:83
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition Core.cpp:68
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:123