v0.16.3
Loading...
Searching...
No Matches
Functions | Variables
field_values_from_tags.cpp File Reference
#include <MoFEM.hpp>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Variables

static char help [] = "Tag values at integration points\n\n"
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 760 of file field_values_from_tags.cpp.

760 {
761 MoFEM::Core::Initialize(&argc, &argv, nullptr, help);
762 try {
763 moab::Core mb_instance;
764 moab::Interface &moab = mb_instance;
765
766 std::vector<Part> parts;
767 CHKERR createParts(moab, parts);
768 CHKERR createTags(moab, parts);
769
770 MoFEM::Core core(moab);
771 MoFEM::Interface &m_field = core;
772 CHKERR setUpProblem(m_field, parts);
773
774 std::unique_ptr<TestingInterface> testing(
776 FromTagsTest test(m_field, *testing, parts);
777 CHKERR testing->addTestCommandLine("", 1, "entity",
778 [&]() { return test.testEntity(); });
779 CHKERR testing->addTestCommandLine("", 2, "vertex",
780 [&]() { return test.testVertex(); });
781 CHKERR testing->addTestCommandLine("", 3, "h1",
782 [&]() { return test.testH1(); });
783 CHKERR testing->addTestCommandLine("", 4, "notation",
784 [&]() { return test.testNotation(); });
785 CHKERR testing->addTestCommandLine("", 5, "side",
786 [&]() { return test.testSide(); });
787 CHKERR testing->addTestCommandLine("", 6, "errors",
788 [&]() { return test.testErrors(); });
789 CHKERR testing->addTestCommandLine("", 7, "factory",
790 [&]() { return test.testFactory(); });
791 CHKERR testing->runTests();
792 }
795 return 0;
796}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static char help[]
PetscBool testing
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
Deprecated interface functions.

Variable Documentation

◆ help

char help[] = "Tag values at integration points\n\n"
static

Definition at line 27 of file field_values_from_tags.cpp.