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

Functions for scotch renumerotation. More...

#include "libmmgs_private.h"
#include "libmmgs.h"
#include "librnbg_private.h"
Include dependency graph for librnbg_s.c:

Go to the source code of this file.

Functions

static void MMG5_swapTri (MMG5_pTria trias, MMG5_int *perm, MMG5_int ind1, MMG5_int ind2)
 
int MMG5_mmgsRenumbering (int boxVertNbr, MMG5_pMesh mesh, MMG5_pSol sol, MMG5_pSol fields, MMG5_int *permNodGlob)
 

Detailed Description

Functions for scotch renumerotation.

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

Definition in file librnbg_s.c.

Function Documentation

◆ MMG5_mmgsRenumbering()

int MMG5_mmgsRenumbering ( 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 (if provided)
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 80 of file librnbg_s.c.

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

◆ MMG5_swapTri()

static void MMG5_swapTri ( MMG5_pTria  trias,
MMG5_int *  perm,
MMG5_int  ind1,
MMG5_int  ind2 
)
inlinestatic
Parameters
triaspointer toward a table containing the tetra structures.
*permpointer toward the permutation table (to perform in place permutations).
ind1index of the first tria to swap.
ind2index of the second tria to swap.

Swap two tetras in the table of tetrahedras.

Definition at line 51 of file librnbg_s.c.

Here is the caller graph for this function: