v0.8.15
Public Member Functions | Public Attributes | List of all members
MoFEM::SaveData Struct Reference

Public Member Functions

 SaveData (moab::Interface &moab)
 
MoFEMErrorCode operator() (const std::string name, const Range &ents)
 

Public Attributes

moab::Interface & moab
 

Detailed Description

Definition at line 2713 of file CutMeshInterface.cpp.

Constructor & Destructor Documentation

◆ SaveData()

MoFEM::SaveData::SaveData ( moab::Interface &  moab)

Definition at line 2715 of file CutMeshInterface.cpp.

2715 : moab(moab) {}
moab::Interface & moab

Member Function Documentation

◆ operator()()

MoFEMErrorCode MoFEM::SaveData::operator() ( const std::string  name,
const Range &  ents 
)

Definition at line 2716 of file CutMeshInterface.cpp.

2716  {
2718  EntityHandle meshset;
2719  rval = moab.create_meshset(MESHSET_SET, meshset);
2720  CHKERRG(rval);
2721  rval = moab.add_entities(meshset, ents);
2722  CHKERRG(rval);
2723  rval = moab.write_file(name.c_str(), "VTK", "", &meshset, 1);
2724  CHKERRG(rval);
2725  rval = moab.delete_entities(&meshset, 1);
2726  CHKERRG(rval);
2728  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:483
#define CHKERRG(n)
Check error code of MoFEM/MOAB/PETSc function.
Definition: definitions.h:526
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:490
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Common.hpp:78

Member Data Documentation

◆ moab

moab::Interface& MoFEM::SaveData::moab

Definition at line 2714 of file CutMeshInterface.cpp.


The documentation for this struct was generated from the following file: