Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions
zaldy_2d.c File Reference

Memory management. More...

#include "libmmg2d_private.h"
Include dependency graph for zaldy_2d.c:

Go to the source code of this file.

Functions

MMG5_int MMG2D_newPt (MMG5_pMesh mesh, double c[2], int16_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)
 

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

Definition in file zaldy_2d.c.

Function Documentation

◆ MMG2D_delElt()

int MMG2D_delElt ( MMG5_pMesh  mesh,
MMG5_int  iel 
)

Definition at line 105 of file zaldy_2d.c.

Here is the caller graph for this function:

◆ MMG2D_delPt()

void MMG2D_delPt ( MMG5_pMesh  mesh,
MMG5_int  ip 
)

Definition at line 57 of file zaldy_2d.c.

Here is the caller graph for this function:

◆ MMG2D_memOption()

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

memory repartition for the -m option

Definition at line 233 of file zaldy_2d.c.

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

◆ MMG2D_memOption_memSet()

static int MMG2D_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/ntmax must be setted.

Check that we will not overflow int32_max when allocating adja array

Definition at line 142 of file zaldy_2d.c.

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

◆ MMG2D_newElt()

MMG5_int MMG2D_newElt ( MMG5_pMesh  mesh)

Definition at line 85 of file zaldy_2d.c.

Here is the caller graph for this function:

◆ MMG2D_newPt()

MMG5_int MMG2D_newPt ( MMG5_pMesh  mesh,
double  c[2],
int16_t  tag 
)

Definition at line 38 of file zaldy_2d.c.

Here is the caller graph for this function:

◆ MMG2D_setMeshSize_alloc()

int MMG2D_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.

Definition at line 252 of file zaldy_2d.c.

Here is the caller graph for this function:

◆ MMG2D_zaldy()

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

allocate main structure

Definition at line 303 of file zaldy_2d.c.

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

◆ MMG5_delEdge()

void MMG5_delEdge ( MMG5_pMesh  mesh,
MMG5_int  iel 
)

Definition at line 70 of file zaldy_2d.c.

Here is the caller graph for this function: