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

Crack extension by local flips: CGALTools candidate search checks. More...

#include <MoFEM.hpp>

Go to the source code of this file.

Functions

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

Detailed Description

Crack extension by local flips: CGALTools candidate search checks.

Meshes are generated in code: a planar triangulation extruded into prisms, each split into three tetrahedra with a global vertex-order rule, so planar layers are faces of the mesh and the crack is a set of layer triangles. See doc/development/cgal_crack_extension_algorithm.md, "Verification".

Definition in file cgal_crack_extension.cpp.

Function Documentation

◆ main()

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

Definition at line 1666 of file cgal_crack_extension.cpp.

1666 {
1667 MoFEM::Core::Initialize(&argc, &argv, nullptr, help);
1668 try {
1669 moab::Core mb_instance;
1670 moab::Interface &moab = mb_instance;
1671 MoFEM::Core core(moab);
1672 core.getInterface<JsonConfigManager>();
1673 auto testing = core.getInterface<TestingInterface>();
1675 CHKERR testing->addTestCommandLine("", 1, "flat",
1676 [&]() { return flat(*testing, tools); });
1677 CHKERR testing->addTestCommandLine(
1678 "", 2, "kinked", [&]() { return kinked(*testing, tools); });
1679 CHKERR testing->addTestCommandLine(
1680 "", 3, "notch", [&]() { return notchTest(*testing, tools); });
1681 CHKERR testing->addTestCommandLine(
1682 "", 4, "boundary", [&]() { return boundary(*testing, tools); });
1683 CHKERR testing->addTestCommandLine(
1684 "", 5, "failure", [&]() { return failure(*testing, tools); });
1685 CHKERR testing->addTestCommandLine(
1686 "", 6, "jitter", [&]() { return jitter(*testing, tools); });
1687 CHKERR testing->addTestCommandLine("", 7, "hole",
1688 [&]() { return hole(*testing, tools); });
1689 CHKERR testing->addTestCommandLine("", 8, "join",
1690 [&]() { return join(*testing, tools); });
1691 CHKERR testing->addTestCommandLine(
1692 "", 9, "curved_skin", [&]() { return curvedSkin(*testing, tools); });
1693 CHKERR testing->addTestCommandLine(
1694 "", 10, "skin_corner", [&]() { return skinCorner(*testing, tools); });
1695 CHKERR testing->addTestCommandLine(
1696 "", 11, "no_hole_join", [&]() { return noHoleJoin(*testing, tools); });
1697 CHKERR testing->addTestCommandLine(
1698 "", 12, "look_ahead", [&]() { return lookAhead(*testing, tools); });
1699 CHKERR testing->addTestCommandLine("", 13, "look_ahead_closure", [&]() {
1700 return lookAheadClosure(*testing, tools);
1701 });
1702 CHKERR testing->addTestCommandLine("", 14, "join_recovery", [&]() {
1703 return joinRecovery(*testing, tools);
1704 });
1705 CHKERR testing->runTests();
1706 }
1709 return 0;
1710}
CGALTools & tools
int boundary
static char help[]
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
PetscBool testing
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
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.