v0.14.0
Classes | Functions | Variables
read_vtk.cpp File Reference

Tool to read mesh files as vtk files assuming Boundary conditions are set with a field named "BOUNDARY_CONDITIONS". More...

#include <MoFEM.hpp>

Go to the source code of this file.

Classes

struct  VtkInterface
 

Functions

int main (int argc, char *argv[])
 

Variables

static char help [] = "...\n\n"
 

Detailed Description

Tool to read mesh files as vtk files assuming Boundary conditions are set with a field named "BOUNDARY_CONDITIONS".

Definition in file read_vtk.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 252 of file read_vtk.cpp.

252  {
253  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
254 
255  try {
256 
257  moab::Core mb_instance;
258  moab::Interface &moab = mb_instance;
259  ParallelComm *pcomm = ParallelComm::get_pcomm(&moab, MYPCOMM_INDEX);
260  if (pcomm == NULL)
261  pcomm = new ParallelComm(&moab, PETSC_COMM_WORLD);
262 
263  // Create MoFEM database
264  MoFEM::Core core(moab);
265  MoFEM::Interface &m_field = core;
266 
267  VtkInterface read_vtk(m_field, moab);
268  CHKERR read_vtk.readVtk();
269  }
270  CATCH_ERRORS;
271 
273 
274  return 0;
275 }

Variable Documentation

◆ help

char help[] = "...\n\n"
static

Definition at line 250 of file read_vtk.cpp.

MYPCOMM_INDEX
#define MYPCOMM_INDEX
default communicator number PCOMM
Definition: definitions.h:228
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:82
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:112
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:16
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:2010
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:548
MoFEM::CoreTmp< 0 >::Initialize
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:72
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:385
VtkInterface
Definition: read_vtk.cpp:11
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1148
help
static char help[]
Definition: read_vtk.cpp:250