Memory management.
More...
Memory management.
- Author
- Charles Dapogny (UPMC)
-
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
-
Pascal Frey (UPMC)
-
Algiane Froehly (Inria/UBordeaux)
- Version
- 5
- Copyright
- GNU Lesser General Public License.
- Todo:
- Doxygen documentation
◆ MMG3D_delElt()
- Parameters
-
mesh | pointer toward the mesh |
iel | index of the element to delete |
- Returns
- 1 if success, 0 if fail
Delete the element iel
◆ MMG3D_delPt()
◆ MMG3D_memOption()
- Parameters
-
mesh | pointer toward the mesh structure |
- Returns
- 0 if fail, 1 otherwise
memory repartition for the -m option
◆ MMG3D_memOption_memRepartition()
int MMG3D_memOption_memRepartition |
( |
MMG5_pMesh |
mesh | ) |
|
- Parameters
-
mesh | pointer toward the mesh structure |
- Returns
- 0 if fail, 1 otherwise
memory repartition for the memMax amout of memory available.
◆ MMG3D_memOption_memSet()
- Parameters
-
mesh | pointer toward the mesh structure |
- Returns
- 0 if fail, 1 otherwise
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.
◆ MMG3D_newElt()
◆ MMG3D_newPt()
int MMG3D_newPt |
( |
MMG5_pMesh |
mesh, |
|
|
double |
c[3], |
|
|
int16_t |
tag |
|
) |
| |
◆ MMG3D_setMeshSize_alloc()
- Parameters
-
mesh | pointer toward the mesh structure. |
- Returns
- 0 if failed, 1 otherwise.
Allocation of the array fields of the mesh.
◆ MMG3D_zaldy()
- Parameters
-
mesh | pointer toward the mesh |
- Returns
- 1 if success, 0 if fail
allocate main structure
◆ MMG5_freeXPrisms()
- Parameters
-
mesh | pointer toward the mesh structure. |
Free xprism structure.
◆ MMG5_freeXTets()
- Parameters
-
mesh | pointer toward the mesh structure. |
Free xtetra structure.