Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
|
Functions for scotch renumerotation. More...
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) |
Functions for scotch renumerotation.
Definition in file librnbg.c.
int MMG5_kPartBoxCompute | ( | SCOTCH_Graph * | graf, |
MMG5_int | vertNbr, | ||
MMG5_int | boxVertNbr, | ||
SCOTCH_Num * | permVrtTab, | ||
MMG5_pMesh | mesh | ||
) |
graf | pointer to the input graph structure. |
vertNbr | the number of vertices. |
boxVertNbr | the number of vertices of each box. |
permVrtTab | the new numbering. |
mesh | pointer to the mesh structure. |
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.
int MMG5_scotchCall | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met, | ||
MMG5_pSol | fields, | ||
MMG5_int * | permNodGlob | ||
) |
mesh | pointer to the mesh structure. |
met | pointer to the solution structure. |
fields | pointer to an array of solution fields (non mandatory) |
permNodGlob | store the global permutation of nodes (if provided). |
Call scotch renumbering.
Definition at line 231 of file librnbg.c.
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 | ||
) |
mesh | pointer to the mesh |
points | pointer to a table containing the point structures. |
sols | pointer to a table containing the solution structures. |
fields | pointer to an array of solution fields to permute. |
*perm | pointer to the permutation table (to perform in place permutations). |
ind1 | index of the first tetra to swap. |
ind2 | index of the second tetra to swap. |
solsize | size of the solution. |
Swap two nodes in the table of vertices.
Definition at line 158 of file librnbg.c.