v0.9.0
Namespaces | Macros | Functions
ForcesAndSourcesCore.cpp File Reference

Implementation of Elements on Entities for Forces and Sources. More...

#include <cblas.h>
#include <lapack_wrap.h>

Go to the source code of this file.

Namespaces

 MoFEM
 implementation of Data Operators for Forces and Sources
 

Macros

#define FUNCTION_NAME_WITH_OP_NAME(OP)
 
#define CATCH_OP_ERRORS(OP)
 

Functions

template<typename ENTMULTIINDEX >
static int MoFEM::getMaxOrder (const ENTMULTIINDEX &multi_index)
 

Detailed Description

Implementation of Elements on Entities for Forces and Sources.

Definition in file ForcesAndSourcesCore.cpp.

Macro Definition Documentation

◆ CATCH_OP_ERRORS

#define CATCH_OP_ERRORS (   OP)
Value:
catch (MoFEMExceptionInitial const &ex) { \
FUNCTION_NAME_WITH_OP_NAME(OP) << PETSC_FUNCTION_NAME; \
return PetscError(PETSC_COMM_SELF, ex.lINE, ss.str().c_str(), __FILE__, \
ex.errorCode, PETSC_ERROR_INITIAL, ex.what()); \
} \
catch (MoFEMExceptionRepeat const &ex) { \
FUNCTION_NAME_WITH_OP_NAME(OP) << PETSC_FUNCTION_NAME; \
return PetscError(PETSC_COMM_SELF, ex.lINE, ss.str().c_str(), __FILE__, \
ex.errorCode, PETSC_ERROR_REPEAT, " "); \
} \
catch (MoFEMException const &ex) { \
FUNCTION_NAME_WITH_OP_NAME(OP) << ex.errorMessage; \
SETERRQ(PETSC_COMM_SELF, ex.errorCode, ss.str().c_str()); \
} \
catch (std::exception const &ex) { \
std::string message("Error: " + std::string(ex.what()) + " at " + \
boost::lexical_cast<std::string>(__LINE__) + " : " + \
std::string(__FILE__) + " in " + \
std::string(PETSC_FUNCTION_NAME)); \
FUNCTION_NAME_WITH_OP_NAME(OP) << message; \
SETERRQ(PETSC_COMM_SELF, MOFEM_STD_EXCEPTION_THROW, ss.str().c_str()); \
}

Definition at line 1048 of file ForcesAndSourcesCore.cpp.

◆ FUNCTION_NAME_WITH_OP_NAME

#define FUNCTION_NAME_WITH_OP_NAME (   OP)
Value:
std::ostringstream ss; \
ss << "(Calling user data operator " \
<< boost::typeindex::type_id_runtime(OP).pretty_name() << " rowField " \
<< (OP).rowFieldName << " colField " << (OP).colFieldName << ") "

Definition at line 1042 of file ForcesAndSourcesCore.cpp.