Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
inoutcpp_3d.cpp File Reference
#include "vtkparser.hpp"
#include "libmmg3d.h"
#include "libmmg3d_private.h"
Include dependency graph for inoutcpp_3d.cpp:

Go to the source code of this file.

Functions

static int MMG3D_loadVtkMesh_part2 (MMG5_pMesh mesh, MMG5_pSol *sol, vtkDataSet **dataset, int8_t ptMeditRef, int8_t eltMeditRef, int nsols)
 Input / Output Functions that needs cpp features. More...
 
int MMG3D_loadVtuMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG3D_loadVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG3D_loadVtkMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG3D_loadVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG3D_saveVtuMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG3D_saveVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG3D_saveVtkMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG3D_saveVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 

Function Documentation

◆ MMG3D_loadVtkMesh()

int MMG3D_loadVtkMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if file is not found, -1 if fail for another reason (mem lack, file format...), 1 if success.

Read mesh and 0 or 1 data at VTK file format (.vtu extension). We read only low-order points, edges, tria, quadra, tetra and prisms. Point and cell references must be stored in PointData or CellData whose names contains the "medit:ref" keyword.

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_LOADVTKMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 146 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_loadVtkMesh_and_allData()

int MMG3D_loadVtkMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if file is not found, -1 if fail for another reason (mem lack, file format...), 1 if success.

Read mesh and a list of data in VTK file format (.vtu extension). We read only low-order points, edges, tria, quadra, tetra and prisms. Point and cell references must be stored in PointData or CellData whose names contains the "medit:ref" keyword.

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_LOADVTKMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 186 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_loadVtkMesh_part2()

static int MMG3D_loadVtkMesh_part2 ( MMG5_pMesh  mesh,
MMG5_pSol sol,
vtkDataSet **  dataset,
int8_t  ptMeditRef,
int8_t  eltMeditRef,
int  nsols 
)
static

Input / Output Functions that needs cpp features.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5

Definition at line 42 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_loadVtuMesh()

int MMG3D_loadVtuMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if file is not found, -1 if fail for another reason (mem lack, file format...), 1 if success.

Read mesh and 0 or 1 data at VTU (VTK) file format (.vtu extension). We read only low-order points, edges, tria, quadra, tetra and prisms. Point and cell references must be stored in PointData or CellData whose names contains the "medit:ref" keyword.

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_LOADVTUMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 73 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_loadVtuMesh_and_allData()

int MMG3D_loadVtuMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if file is not found, -1 if fail for another reason (mem lack, file format...), 1 if success.

Read mesh a list of data in VTU file format (.vtu extension). We read only low-order points, edges, tria, quadra, tetra and prisms. Point and cell references must be stored in PointData or CellData whose names contains the "medit:ref" keyword.

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_LOADVTUMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 113 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_saveVtkMesh()

int MMG3D_saveVtkMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if failed, 1 otherwise.

Write mesh and 0 or 1 data at Vtk file format (.vtk extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_SAVEVTKMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 248 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_saveVtkMesh_and_allData()

int MMG3D_saveVtkMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if failed, 1 otherwise.

Write mesh and a list of data fields at Vtk file format (.vtk extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_SAVEVTKMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 263 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_saveVtuMesh()

int MMG3D_saveVtuMesh ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if failed, 1 otherwise.

Write mesh and 0 or 1 data at vtu Vtk file format (.vtu extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_SAVEVTUMESH(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 219 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG3D_saveVtuMesh_and_allData()

int MMG3D_saveVtuMesh_and_allData ( MMG5_pMesh  mesh,
MMG5_pSol sol,
const char *  filename 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the solution structure.
filenamename of file.
Returns
0 if failed, 1 otherwise.

Write mesh and a list of data fields at vtu Vtk file format (.vtu extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG3D_SAVEVTUMESH_AND_ALLDATA(mesh,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE

Definition at line 232 of file inoutcpp_3d.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: