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()
Pre-processing function executed at loop initialization.
MoFEMErrorCode postProcess()
Post-processing function executed at loop completion.
MoFEM::Interface & mField
MoFEMErrorCode operator()()
Main operator function executed for each loop iteration.
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 for user loop methods on degrees of freedom (DOFs)
boost::shared_ptr< DofEntity > dofPtr
Shared pointer to DOF entity data.
boost::shared_ptr< Field > fieldPtr
Shared pointer to field information.