v0.14.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
MoFEM::CutMeshInterface::SaveData Struct Reference

#include <src/interfaces/CutMeshInterface.hpp>

Collaboration diagram for MoFEM::CutMeshInterface::SaveData:
[legend]

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

Constructor & Destructor Documentation

◆ SaveData()

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

Definition at line 500 of file CutMeshInterface.hpp.

Member Function Documentation

◆ operator()()

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

Definition at line 501 of file CutMeshInterface.hpp.

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

Member Data Documentation

◆ moab

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

Definition at line 499 of file CutMeshInterface.hpp.


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