Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Input / Output Functions. More...
Go to the source code of this file.
Functions | |
int | MMGS_loadMesh (MMG5_pMesh mesh, const char *filename) |
Load a mesh (in .mesh/.mesb format) from file. | |
int | MMGS_loadMshMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
Load a mesh and possibly a solution in .msh format from file. | |
int | MMGS_loadMshMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
Load a mesh and all data from a file in MSH format. | |
int | MMGS_loadGenericMesh (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol, const char *filename) |
Load a mesh and all data from a file. The format will be guessed from the filename extension. | |
int | MMGS_saveMesh (MMG5_pMesh mesh, const char *filename) |
Save a mesh in .mesh or .meshb format. | |
int | MMGS_saveMshMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
Write mesh and optionally one data field in MSH file format (.msh extension). | |
int | MMGS_saveMshMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
Save a mesh and multiple data fields in MSH format, ascii or binary depending on the filename extension. | |
int | MMGS_loadSol (MMG5_pMesh mesh, MMG5_pSol met, const char *filename) |
Load a metric field (or other solution) in medit's .sol format. | |
int | MMGS_loadAllSols (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
Load one or more solutions in a solution file in medit file format. | |
int | MMGS_saveSol (MMG5_pMesh mesh, MMG5_pSol met, const char *filename) |
Write an isotropic or anisotropic metric in medit file format. | |
int | MMGS_saveAllSols (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
Save one or more solutions in a solution file in medit file format. | |
int | MMGS_saveGenericMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
Save mesh data in a file whose format depends on the filename extension. | |
Input / Output Functions.
Definition in file inout_s.c.
int MMGS_loadAllSols | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
Load one or more solutions in a solution file in medit file format.
mesh | pointer to the mesh structure. |
sol | pointer to the solutions array |
filename | name of the file to load. |
SUBROUTINE MMGS_LOADALLSOLS(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
Read the file header
Sol tab allocation
Definition at line 1387 of file inout_s.c.
int MMGS_loadGenericMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
Load a mesh and all data from a file. The format will be guessed from the filename extension.
mesh | pointer to the mesh structure. |
met | pointer to the metric structure or the NULL pointer. |
sol | pointer to the level-set structure or the NULL pointer. |
filename | name of the file to load. |
SUBROUTINE MMGS_LOADGENERICMESH(mesh,met,sol,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met,sol
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
Definition at line 764 of file inout_s.c.
int MMGS_loadMesh | ( | MMG5_pMesh | mesh, |
const char * | filename | ||
) |
Load a mesh (in .mesh/.mesb format) from file.
mesh | pointer to the mesh structure. |
filename | name of the file to load. |
This function reads .mesh (ASCII) and .meshb (binary) files. If the name contains ".mesh" the file will be read as an ASCII file and if the name contains .meshb it be read as a binary file. If the file contains neither of these strings the function will first try to open "[filename].meshb" and if this fails it will try "[filename].mesh".
SUBROUTINE MMGS_LOADMESH(mesh,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
Definition at line 41 of file inout_s.c.
int MMGS_loadMshMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
Load a mesh and possibly a solution in .msh format from file.
mesh | pointer to the mesh structure. |
sol | pointer to the solution structure. |
filename | name of the file to load. |
Read a mesh and optionally one data field in MSH file format (.msh extension). We read only low-order vertices, edges, triangles, quadrangles, tetrahedra and prisms.
SUBROUTINE MMGS_LOADMSHMESH(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 645 of file inout_s.c.
int MMGS_loadMshMesh_and_allData | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
Load a mesh and all data from a file in MSH format.
mesh | pointer to the mesh structure. |
sol | pointer to a list of solution structures. |
filename | name of the file to load. |
Read a mesh and multiple data in MSH file format (.msh extension). We read only low-order vertices, edges, triangles, quadrangles, tetrahedra and prisms.
SUBROUTINE MMGS_LOADMSHMESH_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 706 of file inout_s.c.
int MMGS_loadSol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
const char * | filename | ||
) |
Load a metric field (or other solution) in medit's .sol format.
mesh | pointer to the mesh structure. |
met | pointer to the sol structure. |
filename | name of the file to load. |
Load metric field. The solution file (in medit file format) must contain only 1 solution: the metric.
SUBROUTINE MMGS_LOADSOL(mesh,met,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
Read the file header
Definition at line 1312 of file inout_s.c.
int MMGS_saveAllSols | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
Save one or more solutions in a solution file in medit file format.
mesh | pointer to the mesh structure. |
sol | pointer to the solutions array |
filename | name of the solution file. |
SUBROUTINE MMGS_SAVEALLSOLS(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 1520 of file inout_s.c.
int MMGS_saveGenericMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
Save mesh data in a file whose format depends on the filename extension.
mesh | pointer to the mesh structure. |
filename | name of the file to write. |
SUBROUTINE MMGS_SAVEGENERICMESH(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 1609 of file inout_s.c.
int MMGS_saveMesh | ( | MMG5_pMesh | mesh, |
const char * | filename | ||
) |
Save a mesh in .mesh or .meshb format.
mesh | pointer to the mesh structure. |
filename | name of the file to load. |
This function saves a mesh in .mesh or .meshb format (depending on the filename extension).
SUBROUTINE MMGS_SAVEMESH(mesh,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
Definition at line 842 of file inout_s.c.
int MMGS_saveMshMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
Write mesh and optionally one data field in MSH file format (.msh extension).
mesh | pointer to the mesh structure. |
sol | pointer to the solution structure. |
filename | name of the file to load. |
The file is saved in ASCII format for .msh extension, an in binary format for a .mshb extension.
SUBROUTINE MMGS_SAVEMSHMESH(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 1302 of file inout_s.c.
int MMGS_saveMshMesh_and_allData | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
Save a mesh and multiple data fields in MSH format, ascii or binary depending on the filename extension.
mesh | pointer to the mesh structure. |
sol | pointer to the solution structure. |
filename | name of the file to write. |
This function saves a mesh and multiple data fields (that are considered as solutions and not metrics, thus, we do nothing over the ridge vertices) in MSH file format (.msh extension). The file is saved in ASCII format for .msh extension and in binary format for a .mshb extension.
SUBROUTINE MMGS_SAVEMSHMESH_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 1307 of file inout_s.c.
int MMGS_saveSol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
const char * | filename | ||
) |
Write an isotropic or anisotropic metric in medit file format.
mesh | pointer to the mesh structure. |
met | pointer to the sol structure. |
filename | name of the file to write. |
SUBROUTINE MMGS_SAVESOL(mesh,met,filename,strlen0,retval)
MMG5_DATA_PTR_T, INTENT(INOUT) :: mesh,met
CHARACTER(LEN=*), INTENT(IN) :: filename
INTEGER, INTENT(IN) :: strlen0
INTEGER, INTENT(OUT) :: retval
END SUBROUTINE
Definition at line 1483 of file inout_s.c.