Public Member Functions | Public Attributes | List of all members
MoFEM::CutMeshInterface::SaveData Struct Reference

#include <src/interfaces/CutMeshInterface.hpp>

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 512 of file CutMeshInterface.hpp.

Constructor & Destructor Documentation

◆ SaveData()

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

Definition at line 514 of file CutMeshInterface.hpp.

514 : moab(moab) {}

Member Function Documentation

◆ operator()()

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

Definition at line 515 of file CutMeshInterface.hpp.

515  {
517  EntityHandle meshset;
518  CHKERR moab.create_meshset(MESHSET_SET, meshset);
519  CHKERR moab.add_entities(meshset, ents);
520  CHKERR moab.write_file(name.c_str(), "VTK", "", &meshset, 1);
521  CHKERR moab.delete_entities(&meshset, 1);
523  }

Member Data Documentation

◆ moab

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

Definition at line 513 of file CutMeshInterface.hpp.

The documentation for this struct was generated from the following file:
#define CHKERR
Inline error check.
Definition: definitions.h:604
moab::Interface & moab
Definition: CutMeshInterface.hpp:513
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:485
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:415