v0.15.0
Loading...
Searching...
No Matches
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 290 of file read_vtk.cpp.

290 {
291 MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
292
293 try {
294
295 moab::Core mb_instance;
296 moab::Interface &moab = mb_instance;
297 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab, MYPCOMM_INDEX);
298 if (pcomm == NULL)
299 pcomm = new ParallelComm(&moab, PETSC_COMM_WORLD);
300
301 // Create MoFEM database
302 MoFEM::Core core(moab);
303 MoFEM::Interface &m_field = core;
304
305 VtkInterface read_vtk(m_field, moab);
306 CHKERR read_vtk.readVtk();
307 }
309
311
312 return 0;
313}
#define CATCH_ERRORS
Catch errors.
#define MYPCOMM_INDEX
default communicator number PCOMM
#define CHKERR
Inline error check.
static char help[]
Definition read_vtk.cpp:288
Core (interface) class.
Definition Core.hpp:82
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
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition Core.cpp:118
Deprecated interface functions.

Variable Documentation

◆ help

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

Definition at line 288 of file read_vtk.cpp.