v0.14.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 300 of file read_vtk.cpp.

300 {
301 MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
302
303 try {
304
305 moab::Core mb_instance;
306 moab::Interface &moab = mb_instance;
307 ParallelComm *pcomm = ParallelComm::get_pcomm(&moab, MYPCOMM_INDEX);
308 if (pcomm == NULL)
309 pcomm = new ParallelComm(&moab, PETSC_COMM_WORLD);
310
311 // Create MoFEM database
312 MoFEM::Core core(moab);
313 MoFEM::Interface &m_field = core;
314
315 VtkInterface read_vtk(m_field, moab);
316 CHKERR read_vtk.readVtk();
317 }
319
321
322 return 0;
323}
#define CATCH_ERRORS
Catch errors.
#define MYPCOMM_INDEX
default communicator number PCOMM
#define CHKERR
Inline error check.
static char help[]
Definition read_vtk.cpp:298
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:112
Deprecated interface functions.

Variable Documentation

◆ help

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

Definition at line 298 of file read_vtk.cpp.