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();
#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.
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.