|
| v0.14.0
|
Go to the documentation of this file.
11 #ifndef __SAVEVERTEXDOFONTAG_HPP__
12 #define __SAVEVERTEXDOFONTAG_HPP__
31 "Null pointer, probably field not found");
35 "Field must be in H1 space");
37 std::vector<double> def_vals(
fieldPtr->getNbOfCoeffs(), 0);
39 if (
rval != MB_SUCCESS) {
42 MB_TAG_CREAT | MB_TAG_SPARSE, &def_vals[0]);
55 if (
dofPtr->getEntType() != MBVERTEX)
58 int rank =
dofPtr->getNbOfCoeffs();
62 tag_val[
dofPtr->getDofCoeffIdx()] =
dofPtr->getFieldData();
70 #endif // __SAVEVERTEXDOFONTAG_HPP__
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
virtual MPI_Comm & get_comm() const =0
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Data structure to exchange data between mofem and User Loop Methods on entities.
boost::shared_ptr< DofEntity > dofPtr
Deprecated interface functions.
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
#define CHKERR
Inline error check.
MoFEMErrorCode operator()()
function is run for every finite element
virtual moab::Interface & get_moab()=0
MoFEMErrorCode postProcess()
function is run at the end of loop
SaveVertexDofOnTag(MoFEM::Interface &m_field, std::string tag_name)
Save field DOFS on vertices/tags.
@ MOFEM_DATA_INCONSISTENCY
MoFEMErrorCode preProcess()
function is run at the beginning of loop
boost::shared_ptr< Field > fieldPtr
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
MoFEM::Interface & mField