Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Memory management. More...
#include "libmmg2d_private.h"
Go to the source code of this file.
Functions | |
MMG5_int | MMG2D_newPt (MMG5_pMesh mesh, double c[2], uint16_t tag) |
void | MMG2D_delPt (MMG5_pMesh mesh, MMG5_int ip) |
void | MMG5_delEdge (MMG5_pMesh mesh, MMG5_int iel) |
MMG5_int | MMG2D_newElt (MMG5_pMesh mesh) |
int | MMG2D_delElt (MMG5_pMesh mesh, MMG5_int iel) |
static int | MMG2D_memOption_memSet (MMG5_pMesh mesh) |
int | MMG2D_memOption (MMG5_pMesh mesh) |
int | MMG2D_setMeshSize_alloc (MMG5_pMesh mesh) |
int | MMG2D_zaldy (MMG5_pMesh mesh) |
Memory management.
Definition in file zaldy_2d.c.
int MMG2D_delElt | ( | MMG5_pMesh | mesh, |
MMG5_int | iel | ||
) |
void MMG2D_delPt | ( | MMG5_pMesh | mesh, |
MMG5_int | ip | ||
) |
int MMG2D_memOption | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure |
memory repartition for the -m option
Definition at line 237 of file zaldy_2d.c.
|
inlinestatic |
mesh | pointer to the mesh structure |
Set the memMax value to its "true" value (50% of the RAM or memory asked by user) and perform memory repartition for the -m option. If -m is not given, memMax is the detected RAM. If -m is provided, check the user option and set memMax to the available RAM if the user ask for too much memory. Last, perform the memory repartition between the mmg arrays with respect to the memMax value.
Check that we will not overflow int32_max when allocating adja array
Definition at line 146 of file zaldy_2d.c.
MMG5_int MMG2D_newElt | ( | MMG5_pMesh | mesh | ) |
MMG5_int MMG2D_newPt | ( | MMG5_pMesh | mesh, |
double | c[2], | ||
uint16_t | tag | ||
) |
int MMG2D_setMeshSize_alloc | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure. |
Allocation of the array fields of the mesh.
Definition at line 256 of file zaldy_2d.c.
int MMG2D_zaldy | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure |
allocate main structure
Definition at line 307 of file zaldy_2d.c.
void MMG5_delEdge | ( | MMG5_pMesh | mesh, |
MMG5_int | iel | ||
) |