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

Functions for scotch renumerotation. More...

#include "mmgcommon_private.h"
#include "mmgexterns_private.h"
#include "librnbg_private.h"
Include dependency graph for librnbg.c:

Go to the source code of this file.

Functions

int MMG5_kPartBoxCompute (SCOTCH_Graph *graf, MMG5_int vertNbr, MMG5_int boxVertNbr, SCOTCH_Num *permVrtTab, MMG5_pMesh mesh)
 
void MMG5_swapNod (MMG5_pMesh mesh, MMG5_pPoint points, double *sols, MMG5_pSol field, MMG5_int *perm, MMG5_int ind1, MMG5_int ind2, int solsiz)
 
int MMG5_scotchCall (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol fields, MMG5_int *permNodGlob)
 

Detailed Description

Functions for scotch renumerotation.

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

Definition in file librnbg.c.

Function Documentation

◆ MMG5_kPartBoxCompute()

int MMG5_kPartBoxCompute ( SCOTCH_Graph *  graf,
MMG5_int  vertNbr,
MMG5_int  boxVertNbr,
SCOTCH_Num *  permVrtTab,
MMG5_pMesh  mesh 
)
Parameters
grafpointer toward the input graph structure.
vertNbrthe number of vertices.
boxVertNbrthe number of vertices of each box.
permVrtTabthe new numbering.
meshpointer toward the mesh structure.
Returns
0 if ok, 1 otherwise.

Internal function that computes a new numbering of graph vertices using a k-partitioning and assuming that baseval of the graph is 1.

Definition at line 53 of file librnbg.c.

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

◆ MMG5_scotchCall()

int MMG5_scotchCall ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pSol  fields,
MMG5_int *  permNodGlob 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the solution structure.
fieldspointer toward an array of solution fields (non mandatory)
permNodGlobstore the global permutation of nodes (if provided).
Returns
0 if MMG5_renumbering fail (non conformal mesh), 1 otherwise (renumerotation success of renumerotation fail but the mesh is still conformal).

Call scotch renumbering.

Definition at line 231 of file librnbg.c.

Here is the caller graph for this function:

◆ MMG5_swapNod()

void MMG5_swapNod ( MMG5_pMesh  mesh,
MMG5_pPoint  points,
double *  sols,
MMG5_pSol  field,
MMG5_int *  perm,
MMG5_int  ind1,
MMG5_int  ind2,
int  solsiz 
)
Parameters
meshpointer toward the mesh
pointspointer toward a table containing the point structures.
solspointer toward a table containing the solution structures.
fieldspointer toward an array of solution fields to permute.
*permpointer toward the permutation table (to perform in place permutations).
ind1index of the first tetra to swap.
ind2index of the second tetra to swap.
solsizesize of the solution.

Swap two nodes in the table of vertices.

Definition at line 158 of file librnbg.c.

Here is the caller graph for this function: