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

Constructor & Destructor Documentation

◆ SaveData()

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

Definition at line 22 of file CutMeshInterface.cpp.

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

Member Function Documentation

◆ operator()()

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

Definition at line 23 of file CutMeshInterface.cpp.

23  {
25  EntityHandle meshset;
26  CHKERR moab.create_meshset(MESHSET_SET, meshset);
27  CHKERR moab.add_entities(meshset, ents);
28  CHKERR moab.write_file(name.c_str(), "VTK", "", &meshset, 1);
29  CHKERR moab.delete_entities(&meshset, 1);
31  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return() ...
Definition: definitions.h:475
#define CHKERR
Inline error check.
Definition: definitions.h:594
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:405

Member Data Documentation

◆ moab

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

Definition at line 21 of file CutMeshInterface.cpp.

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