mmgs
zaldy_s.c File Reference

Memory management. More...

#include "mmgs.h"
Include dependency graph for zaldy_s.c:

Functions

int MMGS_newPt (MMG5_pMesh mesh, double c[3], double n[3])
 
void MMGS_delPt (MMG5_pMesh mesh, int ip)
 
int MMGS_newElt (MMG5_pMesh mesh)
 
int MMGS_delElt (MMG5_pMesh mesh, int iel)
 
static int MMGS_memOption_memSet (MMG5_pMesh mesh)
 
int MMGS_memOption (MMG5_pMesh mesh)
 
int MMGS_setMeshSize_alloc (MMG5_pMesh mesh)
 
int MMGS_zaldy (MMG5_pMesh mesh)
 

Detailed Description

Memory management.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Todo:
Doxygen documentation

Function Documentation

◆ MMGS_delElt()

int MMGS_delElt ( MMG5_pMesh  mesh,
int  iel 
)
Parameters
meshpointer toward the mesh
ielindex of the element to delete
Returns
1 if success, 0 if fail

Delete the element iel

Here is the caller graph for this function:

◆ MMGS_delPt()

void MMGS_delPt ( MMG5_pMesh  mesh,
int  ip 
)
Here is the caller graph for this function:

◆ MMGS_memOption()

int MMGS_memOption ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure
Returns
0 if fail, 1 otherwise

memory repartition for the -m option

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMGS_memOption_memSet()

static int MMGS_memOption_memSet ( MMG5_pMesh  mesh)
inlinestatic
Parameters
meshpointer 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.

Remarks
Here, mesh->npmax/nemax/ntmax must be setted.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMGS_newElt()

int MMGS_newElt ( MMG5_pMesh  mesh)
Here is the caller graph for this function:

◆ MMGS_newPt()

int MMGS_newPt ( MMG5_pMesh  mesh,
double  c[3],
double  n[3] 
)
Here is the caller graph for this function:

◆ MMGS_setMeshSize_alloc()

int MMGS_setMeshSize_alloc ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
0 if failed, 1 otherwise.

Allocation of the array fields of the mesh.

Here is the caller graph for this function:

◆ MMGS_zaldy()

int MMGS_zaldy ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh
Returns
1 if success, 0 if fail

allocate main structure

Here is the call graph for this function:
Here is the caller graph for this function: