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 25 of file CutMeshInterface.cpp.

Constructor & Destructor Documentation

◆ SaveData()

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

Definition at line 27 of file CutMeshInterface.cpp.

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

Member Function Documentation

◆ operator()()

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

Definition at line 28 of file CutMeshInterface.cpp.

28  {
30  EntityHandle meshset;
31  CHKERR moab.create_meshset(MESHSET_SET, meshset);
32  CHKERR moab.add_entities(meshset, ents);
33  CHKERR moab.write_file(name.c_str(), "VTK", "", &meshset, 1);
34  CHKERR moab.delete_entities(&meshset, 1);
36  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:476
moab::Interface & moab
#define CHKERR
Inline error check.
Definition: definitions.h:595
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:406

Member Data Documentation

◆ moab

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

Definition at line 26 of file CutMeshInterface.cpp.

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