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

Go to the source code of this file.

Functions

static int MMG2D_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 MMG2D_loadVtpMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG2D_loadVtpMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG2D_loadVtkMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG2D_loadVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG2D_loadVtuMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG2D_loadVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG2D_saveVtuMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG2D_saveVtuMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG2D_saveVtkMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG2D_saveVtkMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 
int MMG2D_saveVtpMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename)
 
int MMG2D_saveVtpMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename)
 

Function Documentation

◆ MMG2D_loadVtkMesh()

int MMG2D_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 field at VTK vtk file format (.vtk extension). We read only low-order points, edges, tria and quad.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_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 158 of file inoutcpp_2d.cpp.

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

◆ MMG2D_loadVtkMesh_and_allData()

int MMG2D_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 field at VTK vtk file format (.vtk extension). We read only low-order points, edges, tria and quad.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_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 201 of file inoutcpp_2d.cpp.

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

◆ MMG2D_loadVtkMesh_part2()

static int MMG2D_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 41 of file inoutcpp_2d.cpp.

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

◆ MMG2D_loadVtpMesh()

int MMG2D_loadVtpMesh ( 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 field at VTK vtp file format (.vtp extension). We read only low-order points, edges, tria and quad.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTPMESH(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 83 of file inoutcpp_2d.cpp.

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

◆ MMG2D_loadVtpMesh_and_allData()

int MMG2D_loadVtpMesh_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 fields at VTK vtp file format (.vtp extension). We read only low-order points, edges, tria and quad.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_LOADVTPMESH_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 126 of file inoutcpp_2d.cpp.

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

◆ MMG2D_loadVtuMesh()

int MMG2D_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 field at VTK vtu file format (.vtu extension). We read only low-order points, edges, tria and quad.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_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 233 of file inoutcpp_2d.cpp.

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

◆ MMG2D_loadVtuMesh_and_allData()

int MMG2D_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 and a list of data field at VTK vtu file format (.vtu extension). We read only low-order points, edges, tria and quad.

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_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 276 of file inoutcpp_2d.cpp.

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

◆ MMG2D_saveVtkMesh()

int MMG2D_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 MMG2D_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 345 of file inoutcpp_2d.cpp.

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

◆ MMG2D_saveVtkMesh_and_allData()

int MMG2D_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 MMG2D_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 360 of file inoutcpp_2d.cpp.

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

◆ MMG2D_saveVtpMesh()

int MMG2D_saveVtpMesh ( 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 polydata Vtk file format (.vtp extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTPMESH(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 375 of file inoutcpp_2d.cpp.

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

◆ MMG2D_saveVtpMesh_and_allData()

int MMG2D_saveVtpMesh_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 polydata Vtk file format (.vtp extension).

Remarks
Fortran interface:

‍ SUBROUTINE MMG2D_SAVEVTPMESH_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 391 of file inoutcpp_2d.cpp.

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

◆ MMG2D_saveVtuMesh()

int MMG2D_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 MMG2D_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 315 of file inoutcpp_2d.cpp.

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

◆ MMG2D_saveVtuMesh_and_allData()

int MMG2D_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 MMG2D_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 330 of file inoutcpp_2d.cpp.

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