v0.16.3
Loading...
Searching...
No Matches
Functions | Variables
ts_elastic_projection_atom.cpp File Reference

Verify elastic projection ownership and cleanup on failed solves. More...

#include <MoFEM.hpp>
#include "AuxiliaryLogarithmicStressTestSetup.hpp"
#include <TSElasticPreAndPostStep.hpp>

Go to the source code of this file.

Functions

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

Variables

static char help [] = "Verify elastic projection resource ownership.\n"
 

Detailed Description

Verify elastic projection ownership and cleanup on failed solves.

Definition in file ts_elastic_projection_atom.cpp.

Function Documentation

◆ main()

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

Definition at line 98 of file ts_elastic_projection_atom.cpp.

98 {
99 MoFEM::Core::Initialize(&argc, &argv, nullptr, help);
100 auto core_log = logging::core::get();
101 core_log->add_sink(LogManager::createSink(LogManager::getStrmWorld(), "EP"));
102 LogManager::setLog("EP");
103 core_log->add_sink(
105 LogManager::setLog("EPSELF");
106 core_log->add_sink(
108 LogManager::setLog("EPSYNC");
109 try {
110 CHKERR runAuxiliaryLogarithmicStressTest(runProjectionAtom);
111 }
114 return 0;
115}
#define CATCH_ERRORS
Catch errors.
#define CHKERR
Inline error check.
static LoggerType & setLog(const std::string channel)
Set ans resset chanel logger.
MoFEMErrorCode runAuxiliaryLogarithmicStressTest(const std::function< MoFEMErrorCode(EshelbianCore &)> &test)
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
static boost::shared_ptr< SinkType > createSink(boost::shared_ptr< std::ostream > stream_ptr, std::string comm_filter)
Create a sink object.
static boost::shared_ptr< std::ostream > getStrmWorld()
Get the strm world object.
static boost::shared_ptr< std::ostream > getStrmSync()
Get the strm sync object.
static boost::shared_ptr< std::ostream > getStrmSelf()
Get the strm self object.
static char help[]

Variable Documentation

◆ help

char help[] = "Verify elastic projection resource ownership.\n"
static

Definition at line 96 of file ts_elastic_projection_atom.cpp.