mmg2d
|
#include "mmg2d.h"
Functions | |
int | MMG2D_loadMesh (MMG5_pMesh mesh, const char *filename) |
int | MMG2D_2dMeshCheck (MMG5_pMesh mesh) |
int | MMG2D_loadMshMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
int | MMG2D_loadMshMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
static int | MMG2D_readFloatSol (MMG5_pSol sol, FILE *inm, int bin, int iswp, int pos) |
static int | MMG2D_readDoubleSol (MMG5_pSol sol, FILE *inm, int bin, int iswp, int pos) |
int | MMG2D_loadSol (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
int | MMG2D_loadAllSols (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
int | MMG2D_saveMesh (MMG5_pMesh mesh, const char *filename) |
int | MMG2D_saveMshMesh (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
int | MMG2D_saveMshMesh_and_allData (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
static void | MMG2D_writeDoubleSol (MMG5_pSol sol, FILE *inm, int bin, int pos) |
int | MMG2D_saveSol (MMG5_pMesh mesh, MMG5_pSol sol, const char *filename) |
int | MMG2D_saveAllSols (MMG5_pMesh mesh, MMG5_pSol *sol, const char *filename) |
int | MMG2D_savemesh_db (MMG5_pMesh mesh, char *filename, int8_t pack) |
int | MMG2D_savemet_db (MMG5_pMesh mesh, MMG5_pSol met, char *filename, int8_t pack) |
int | MMG2D_savenor_db (MMG5_pMesh mesh, char *filename, int8_t pack) |
int | MMG2D_savedisp_db (MMG5_pMesh mesh, MMG5_pSol disp, char *filename, int8_t pack) |
static int | MMG2D_saveEle (MMG5_pMesh mesh, const char *filename) |
static int | MMG2D_saveNeigh (MMG5_pMesh mesh, const char *filename) |
int | MMG2D_saveTetgenMesh (MMG5_pMesh mesh, const char *filename) |
int MMG2D_2dMeshCheck | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure. |
Check mesh data for a Msh mesh : mark the vertices as used if no triangles in the mesh (mesh generation) and check that all z-componants are 0.
int MMG2D_loadAllSols | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward an allocatable sol structure. |
filename | name of file. |
Load a medit solution file containing 1 or more solutions.
Read the file header
Sol tab allocation
int MMG2D_loadMesh | ( | MMG5_pMesh | mesh, |
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
filename | name of the readed file. |
Read mesh data.
SUBROUTINE MMG2D_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
int MMG2D_loadMshMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward the solution structure. |
filename | name of file. |
Read mesh and 0 or 1 data at MSH file format (.msh extension). We read only low-order points, edges, tria, quadra.
SUBROUTINE MMG2D_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
int MMG2D_loadMshMesh_and_allData | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward a list of solution structures. |
filename | name of file. |
Read mesh and a list of data at MSH file format (.msh extension). We read only low-order points, edges, tria, quadra, tetra and prisms.
SUBROUTINE MMG2D_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
int MMG2D_loadSol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol structure. |
filename | name of file. |
Load metric field.
Read the file header
|
inlinestatic |
sol | pointer toward an allocatable sol structure. |
inm | pointer toward the solution file |
bin | 1 if binary file |
iswp | Endianess |
index | of the readed solution |
Read the solution value for vertex of index pos in double precision.
|
inlinestatic |
sol | pointer toward an allocatable sol structure. |
inm | pointer toward the solution file |
bin | 1 if binary file |
iswp | Endianess |
index | of the readed solution |
Read the solution value for vertex of index pos in floating precision.
int MMG2D_saveAllSols | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward the solutions array. |
filename | name of file. |
Write 1 or more solutions.
int MMG2D_savedisp_db | ( | MMG5_pMesh | mesh, |
MMG5_pSol | disp, | ||
char * | filename, | ||
int8_t | pack | ||
) |
|
inlinestatic |
int MMG2D_saveMesh | ( | MMG5_pMesh | , |
const char * | |||
) |
mesh | pointer toward the mesh structure. |
filename | name of the readed file. |
Save mesh data.
SUBROUTINE MMG2D_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
int MMG2D_savemesh_db | ( | MMG5_pMesh | mesh, |
char * | filename, | ||
int8_t | pack | ||
) |
int MMG2D_savemet_db | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
char * | filename, | ||
int8_t | pack | ||
) |
int MMG2D_saveMshMesh | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward the solution structure. |
filename | name of file. |
Write mesh and 0 or 1 data at MSH file format (.msh extension). Save file at ASCII format for .msh extension, at binary format for .msh one.
SUBROUTINE MMG2D_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
int MMG2D_saveMshMesh_and_allData | ( | MMG5_pMesh | mesh, |
MMG5_pSol * | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
sol | pointer toward the solution structure. |
filename | name of file. |
Write mesh and a list of data fields at MSH file format (.msh extension). Save file at ASCII format for .msh extension, at binary format for .mshb one.
SUBROUTINE MMG2D_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
|
inlinestatic |
int MMG2D_savenor_db | ( | MMG5_pMesh | mesh, |
char * | filename, | ||
int8_t | pack | ||
) |
int MMG2D_saveSol | ( | MMG5_pMesh | mesh, |
MMG5_pSol | sol, | ||
const char * | filename | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the sol structure. |
filename | name of file. |
Write isotropic or anisotropic metric.
int MMG2D_saveTetgenMesh | ( | MMG5_pMesh | , |
const char * | |||
) |
mesh | pointer toward the mesh structure. |
filename | name of the readed file. |
Save mesh data at Triangle (or equivalent to Tetgen in 2D) file format.
SUBROUTINE MMG2D_SAVETETGENMESH(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
|
inlinestatic |
sol | pointer toward an allocatable sol structure. |
inm | pointer toward the solution file |
bin | 1 if binary file |
index | of the writted solution |
Write the solution value for vertex of index pos in double precision.