11#ifndef __SAVEVERTEXDOFONTAG_HPP__
12#define __SAVEVERTEXDOFONTAG_HPP__
34 "Null pointer, probably field not found");
38 "Field must be in H1 space");
40 std::vector<double> def_vals(
fieldPtr->getNbOfCoeffs(), 0);
42 if (
rval != MB_SUCCESS) {
45 MB_TAG_CREAT | MB_TAG_SPARSE, &def_vals[0]);
58 if (
dofPtr->getEntType() != MBVERTEX)
61 int rank =
dofPtr->getNbOfCoeffs();
65 tag_val[
dofPtr->getDofCoeffIdx()] =
dofPtr->getFieldData();
#define MoFEMFunctionReturnHot(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_DATA_INCONSISTENCY
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
implementation of Data Operators for Forces and Sources
Save field DOFS on vertices/tags.
MoFEMErrorCode preProcess()
function is run at the beginning of loop
MoFEMErrorCode postProcess()
function is run at the end of loop
MoFEM::Interface & mField
MoFEMErrorCode operator()()
function is run for every finite element
SaveVertexDofOnTag(MoFEM::Interface &m_field, std::string tag_name)
virtual moab::Interface & get_moab()=0
virtual MPI_Comm & get_comm() const =0
Deprecated interface functions.
Data structure to exchange data between mofem and User Loop Methods on entities.
boost::shared_ptr< DofEntity > dofPtr
boost::shared_ptr< Field > fieldPtr