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
Definition in file zaldy_s.c.
static int MMGS_memOption_memSet |
( |
MMG5_pMesh |
mesh | ) |
|
|
inlinestatic |
- Parameters
-
mesh | pointer to 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.
Check that we will not overflow int32_max when allocating adja array
Definition at line 128 of file zaldy_s.c.