Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Macros | Functions
librnbg_private.h File Reference
#include <scotch.h>
Include dependency graph for librnbg_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HASHPRIME   37
 header file for the librnbg.c librnbg_s.c librnbg_3d.c files More...
 
#define STRINGIFY(x)   #x
 
#define TOSTRING(x)   STRINGIFY(x)
 
#define SCOTCH_5
 
#define SCOTCH_6   !strcmp(TOSTRING(SCOTCH_VERSION),"6")
 
#define SCOTCH_7   !strcmp(TOSTRING(SCOTCH_VERSION),"7")
 
#define CHECK_SCOTCH(t, m, e)   if(0!=t){perror(m);return e;}
 

Functions

int _SCOTCHintSort2asc1 (SCOTCH_Num *sortPartTb, MMG5_int vertNbr)
 
int MMG5_kPartBoxCompute (SCOTCH_Graph *, MMG5_int, MMG5_int, SCOTCH_Num *, MMG5_pMesh)
 
void MMG5_swapNod (MMG5_pMesh, MMG5_pPoint, double *, MMG5_pSol, MMG5_int *, MMG5_int, MMG5_int, int)
 

Macro Definition Documentation

◆ CHECK_SCOTCH

#define CHECK_SCOTCH (   t,
  m,
 
)    if(0!=t){perror(m);return e;}

Definition at line 50 of file librnbg_private.h.

◆ HASHPRIME

#define HASHPRIME   37

header file for the librnbg.c librnbg_s.c librnbg_3d.c files

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

Definition at line 38 of file librnbg_private.h.

◆ SCOTCH_5

#define SCOTCH_5
Value:
(!strcmp(TOSTRING(SCOTCH_VERSION),"5.0") || \
!strcmp(TOSTRING(SCOTCH_VERSION),"5.1") || !strcmp(TOSTRING(SCOTCH_VERSION),"5"))
#define TOSTRING(x)

Definition at line 43 of file librnbg_private.h.

◆ SCOTCH_6

#define SCOTCH_6   !strcmp(TOSTRING(SCOTCH_VERSION),"6")

Definition at line 46 of file librnbg_private.h.

◆ SCOTCH_7

#define SCOTCH_7   !strcmp(TOSTRING(SCOTCH_VERSION),"7")

Definition at line 48 of file librnbg_private.h.

◆ STRINGIFY

#define STRINGIFY (   x)    #x

Definition at line 40 of file librnbg_private.h.

◆ TOSTRING

#define TOSTRING (   x)    STRINGIFY(x)

Definition at line 41 of file librnbg_private.h.

Function Documentation

◆ _SCOTCHintSort2asc1()

int _SCOTCHintSort2asc1 ( SCOTCH_Num *  sortPartTb,
MMG5_int  vertNbr 
)
Here is the caller graph for this function:

◆ 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_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: