7 Monitor(DM dm, std::pair<boost::shared_ptr<PostProcEleDomain>,
8 boost::shared_ptr<PostProcEleBdy>>
14 "Cannot get -save_every option");
29 auto make_vtk = [&]() {
35 "out_step_" + boost::lexical_cast<std::string>(
ts_step) +
".h5m");
41 "out_skin_" + boost::lexical_cast<std::string>(
ts_step) +
".h5m");
46 auto calculate_reaction = [&]() {
52 pip->getEvaluationFE()->f =
r;
54 CHKERR pip->loopFiniteElementsEvaluation();
61 CHKERR calculate_reaction();
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
PetscErrorCode DMoFEMLoopFiniteElements(DM dm, const char fe_name[], MoFEM::FEMethod *method, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr())
Executes FEMethod for finite elements in DM.
auto createDMVector(DM dm, RowColData rc=RowColData::COL)
Get smart vector from DM.
PetscErrorCode DMoFEMGetInterfacePtr(DM dm, MoFEM::Interface **m_field_ptr)
Get pointer to MoFEM::Interface.
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
PetscErrorCode PetscOptionsGetInt(PetscOptions *, const char pre[], const char name[], PetscInt *ivalue, PetscBool *set)
boost::weak_ptr< CacheTuple > getCacheWeakPtr() const
Get the cache weak pointer object.
Deprecated interface functions.
PetscInt ts_step
Current time step number.
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
[Push operators to pipeline]
MoFEMErrorCode postProcess()
boost::shared_ptr< PostProcEleDomain > postProcDomain
boost::shared_ptr< PostProcEleBdy > postProcSkin
Monitor(DM dm, std::pair< boost::shared_ptr< PostProcEleDomain >, boost::shared_ptr< PostProcEleBdy > > pair_post_proc)