v0.15.0
Loading...
Searching...
No Matches
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

namespace  MoFEM
 implementation of Data Operators for Forces and Sources
 

Macros

#define LOG_FUNCTION_NAME_WITH_OP_NAME(OP, CHANNEL, SEV)
 
#define CATCH_OP_ERRORS(OP)
 
#define LOG_OP(OP)
 

Functions

static auto MoFEM::cmp_uid_lo (const boost::weak_ptr< FieldEntity > &a, const UId &b)
 
static auto MoFEM::cmp_uid_hi (const UId &b, const boost::weak_ptr< FieldEntity > &a)
 
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) { \
LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
<< "in " << PETSC_FUNCTION_NAME; \
return PetscError(PETSC_COMM_SELF, ex.lINE, PETSC_FUNCTION_NAME, __FILE__, \
ex.errorCode, PETSC_ERROR_INITIAL, "%s", ex.what()); \
} \
catch (MoFEMExceptionRepeat const &ex) { \
LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
<< "in " << PETSC_FUNCTION_NAME; \
return PetscError(PETSC_COMM_SELF, ex.lINE, PETSC_FUNCTION_NAME, __FILE__, \
ex.errorCode, PETSC_ERROR_REPEAT, " "); \
} \
catch (MoFEMException const &ex) { \
LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
<< "in " << PETSC_FUNCTION_NAME; \
SETERRQ(PETSC_COMM_SELF, ex.errorCode, "%s", ex.errorMessage); \
} \
catch (std::exception const &ex) { \
LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
<< "\nError: " << ex.what() << " at " << __LINE__ << " : " __FILE__ \
<< " in " << PETSC_FUNCTION_NAME; \
SETERRQ(PETSC_COMM_SELF, MOFEM_STD_EXCEPTION_THROW, "%s", \
"std::exception"); \
}
@ MOFEM_STD_EXCEPTION_THROW
Definition definitions.h:39

Definition at line 1354 of file ForcesAndSourcesCore.cpp.

1354#define CATCH_OP_ERRORS(OP) \
1355 catch (MoFEMExceptionInitial const &ex) { \
1356 LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
1357 << "in " << PETSC_FUNCTION_NAME; \
1358 return PetscError(PETSC_COMM_SELF, ex.lINE, PETSC_FUNCTION_NAME, __FILE__, \
1359 ex.errorCode, PETSC_ERROR_INITIAL, "%s", ex.what()); \
1360 } \
1361 catch (MoFEMExceptionRepeat const &ex) { \
1362 LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
1363 << "in " << PETSC_FUNCTION_NAME; \
1364 return PetscError(PETSC_COMM_SELF, ex.lINE, PETSC_FUNCTION_NAME, __FILE__, \
1365 ex.errorCode, PETSC_ERROR_REPEAT, " "); \
1366 } \
1367 catch (MoFEMException const &ex) { \
1368 LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
1369 << "in " << PETSC_FUNCTION_NAME; \
1370 SETERRQ(PETSC_COMM_SELF, ex.errorCode, "%s", ex.errorMessage); \
1371 } \
1372 catch (std::exception const &ex) { \
1373 LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "SELF", Sev::error) \
1374 << "\nError: " << ex.what() << " at " << __LINE__ << " : " __FILE__ \
1375 << " in " << PETSC_FUNCTION_NAME; \
1376 SETERRQ(PETSC_COMM_SELF, MOFEM_STD_EXCEPTION_THROW, "%s", \
1377 "std::exception"); \
1378 }

◆ LOG_FUNCTION_NAME_WITH_OP_NAME

#define LOG_FUNCTION_NAME_WITH_OP_NAME ( OP,
CHANNEL,
SEV )
Value:
MOFEM_LOG(CHANNEL, SEV) \
<< "(Calling user data operator " \
<< boost::typeindex::type_id_runtime(OP).pretty_name() << " rowField " \
<< (OP).rowFieldName << " colField " << (OP).colFieldName << ") "
#define MOFEM_LOG(channel, severity)
Log.

Definition at line 1348 of file ForcesAndSourcesCore.cpp.

1348#define LOG_FUNCTION_NAME_WITH_OP_NAME(OP, CHANNEL, SEV) \
1349 MOFEM_LOG(CHANNEL, SEV) \
1350 << "(Calling user data operator " \
1351 << boost::typeindex::type_id_runtime(OP).pretty_name() << " rowField " \
1352 << (OP).rowFieldName << " colField " << (OP).colFieldName << ") "

◆ LOG_OP

#define LOG_OP ( OP)
Value:
LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "WORLD", Sev::noisy) \
<< "\nLocation: at " << __LINE__ << " : " __FILE__ << " in " \
<< PETSC_FUNCTION_NAME;
#define LOG_FUNCTION_NAME_WITH_OP_NAME(OP, CHANNEL, SEV)

Definition at line 1381 of file ForcesAndSourcesCore.cpp.

1381 #define LOG_OP(OP) \
1382 LOG_FUNCTION_NAME_WITH_OP_NAME(OP, "WORLD", Sev::noisy) \
1383 << "\nLocation: at " << __LINE__ << " : " __FILE__ << " in " \
1384 << PETSC_FUNCTION_NAME;