Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Memory management. More...
#include "libmmg3d_private.h"
Go to the source code of this file.
Functions | |
MMG5_int | MMG3D_newPt (MMG5_pMesh mesh, double c[3], uint16_t tag, MMG5_int src) |
void | MMG3D_delPt (MMG5_pMesh mesh, MMG5_int ip) |
MMG5_int | MMG3D_newElt (MMG5_pMesh mesh) |
int | MMG3D_delElt (MMG5_pMesh mesh, MMG5_int iel) |
int | MMG3D_memOption_memSet (MMG5_pMesh mesh) |
int | MMG3D_memOption_memRepartition (MMG5_pMesh mesh) |
int | MMG3D_memOption (MMG5_pMesh mesh) |
int | MMG3D_setMeshSize_alloc (MMG5_pMesh mesh) |
int | MMG3D_zaldy (MMG5_pMesh mesh) |
void | MMG5_freeXTets (MMG5_pMesh mesh) |
void | MMG5_freeXPrisms (MMG5_pMesh mesh) |
Memory management.
Definition in file zaldy_3d.c.
int MMG3D_delElt | ( | MMG5_pMesh | mesh, |
MMG5_int | iel | ||
) |
mesh | pointer to the mesh |
iel | index of the element to delete |
Delete the element iel
Definition at line 122 of file zaldy_3d.c.
void MMG3D_delPt | ( | MMG5_pMesh | mesh, |
MMG5_int | ip | ||
) |
int MMG3D_memOption | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure |
memory repartition for the -m option.
Definition at line 271 of file zaldy_3d.c.
int MMG3D_memOption_memRepartition | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure |
memory repartition for the memMax amout of memory available.
Check that we will not overflow int32_max when allocating adja array
Definition at line 173 of file zaldy_3d.c.
int MMG3D_memOption_memSet | ( | MMG5_pMesh | mesh | ) |
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.
Definition at line 158 of file zaldy_3d.c.
MMG5_int MMG3D_newElt | ( | MMG5_pMesh | mesh | ) |
get new elt address
Definition at line 99 of file zaldy_3d.c.
MMG5_int MMG3D_newPt | ( | MMG5_pMesh | mesh, |
double | c[3], | ||
uint16_t | tag, | ||
MMG5_int | src | ||
) |
get new point address
Definition at line 39 of file zaldy_3d.c.
int MMG3D_setMeshSize_alloc | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure. |
Allocation of the array fields of the mesh.
Definition at line 288 of file zaldy_3d.c.
int MMG3D_zaldy | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh |
allocate main structure
Definition at line 346 of file zaldy_3d.c.
void MMG5_freeXPrisms | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure. |
Free xprism structure.
Definition at line 378 of file zaldy_3d.c.
void MMG5_freeXTets | ( | MMG5_pMesh | mesh | ) |
mesh | pointer to the mesh structure. |
Free xtetra structure.
Definition at line 359 of file zaldy_3d.c.