v0.9.0
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 501 of file CutMeshInterface.hpp.

Constructor & Destructor Documentation

◆ SaveData()

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

Definition at line 503 of file CutMeshInterface.hpp.

503 : moab(moab) {}

Member Function Documentation

◆ operator()()

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

Definition at line 504 of file CutMeshInterface.hpp.

504  {
506  EntityHandle meshset;
507  CHKERR moab.create_meshset(MESHSET_SET, meshset);
508  CHKERR moab.add_entities(meshset, ents);
509  CHKERR moab.write_file(name.c_str(), "VTK", "", &meshset, 1);
510  CHKERR moab.delete_entities(&meshset, 1);
512  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

Member Data Documentation

◆ moab

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

Definition at line 502 of file CutMeshInterface.hpp.


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