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

Functions for scotch renumerotation. More...

#include "libmmg3d_private.h"
#include "libmmg3d.h"
#include "librnbg_private.h"
Include dependency graph for librnbg_3d.c:

Go to the source code of this file.

Functions

static void MMG5_swapTet (MMG5_pTetra tetras, MMG5_int *perm, MMG5_int ind1, MMG5_int ind2)
 
int MMG5_mmg3dRenumbering (int boxVertNbr, MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol fields, MMG5_int *permNodGlob)
 

Detailed Description

Functions for scotch renumerotation.

Author
Algiane Froehly (Inria/UBordeaux)
Cedric Lachat (Inria/UBordeaux)
Version
5
Date
2013

Definition in file librnbg_3d.c.

Function Documentation

◆ MMG5_mmg3dRenumbering()

int MMG5_mmg3dRenumbering ( int  boxVertNbr,
MMG5_pMesh  mesh,
MMG5_pSol  sol,
MMG5_pSol  fields,
MMG5_int *  permNodGlob 
)
Parameters
boxVertNbrnumber of vertices by box.
meshpointer toward the mesh structure.
solpointer toward the solution structure
fieldspointer toward an array of solution fields
permNodGlobarray to store the global permutation of nodes (non mandatory)
Returns
0 if the renumbering fail and we can't rebuild tetrahedra hashtable, 1 if the renumbering fail but we can rebuild tetrahedra hashtable or if the renumbering success.

Modifies the node indicies to prevent from cache missing.

Definition at line 114 of file librnbg_3d.c.

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

◆ MMG5_swapTet()

static void MMG5_swapTet ( MMG5_pTetra  tetras,
MMG5_int *  perm,
MMG5_int  ind1,
MMG5_int  ind2 
)
inlinestatic
Parameters
tetraspointer toward a table containing the tetra structures.
*permpointer toward the permutation table (to perform in place permutations).
ind1index of the first tetra to swap.
ind2index of the second tetra to swap.

Swap two tetras in the table of tetrahedras.

Definition at line 52 of file librnbg_3d.c.

Here is the caller graph for this function: