Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
librnbg_private.h
Go to the documentation of this file.
1/* =============================================================================
2** This file is part of the mmg software package for the tetrahedral
3** mesh modification.
4** Copyright (c) Bx INP/CNRS/Inria/UBordeaux/UPMC, 2004-
5**
6** mmg is free software: you can redistribute it and/or modify it
7** under the terms of the GNU Lesser General Public License as published
8** by the Free Software Foundation, either version 3 of the License, or
9** (at your option) any later version.
10**
11** mmg is distributed in the hope that it will be useful, but WITHOUT
12** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14** License for more details.
15**
16** You should have received a copy of the GNU Lesser General Public
17** License and of the GNU General Public License along with mmg (in
18** files COPYING.LESSER and COPYING). If not, see
19** <http://www.gnu.org/licenses/>. Please read their terms carefully and
20** use this copy of the mmg distribution only if you accept them.
21** =============================================================================
22*/
31#ifdef USE_SCOTCH
32
33#ifndef __RENUM__
34#define __RENUM__
35
36#include <scotch.h>
37
38#define HASHPRIME 37
39
40#define STRINGIFY(x) #x
41#define TOSTRING(x) STRINGIFY(x)
42
43#define SCOTCH_5 (!strcmp(TOSTRING(SCOTCH_VERSION),"5.0") || \
44 !strcmp(TOSTRING(SCOTCH_VERSION),"5.1") || !strcmp(TOSTRING(SCOTCH_VERSION),"5"))
45
46#define SCOTCH_6 !strcmp(TOSTRING(SCOTCH_VERSION),"6")
47
48#define SCOTCH_7 !strcmp(TOSTRING(SCOTCH_VERSION),"7")
49
50#define CHECK_SCOTCH(t,m,e) if(0!=t){perror(m);return e;}
51
52int _SCOTCHintSort2asc1(SCOTCH_Num * sortPartTb, MMG5_int vertNbr);
53int MMG5_kPartBoxCompute(SCOTCH_Graph*, MMG5_int, MMG5_int, SCOTCH_Num*,MMG5_pMesh);
54void MMG5_swapNod(MMG5_pMesh,MMG5_pPoint, double*, MMG5_pSol,MMG5_int*, MMG5_int, MMG5_int, int);
55
56#endif /* __RENUM__ */
57#endif
int MMG5_kPartBoxCompute(SCOTCH_Graph *, MMG5_int, MMG5_int, SCOTCH_Num *, MMG5_pMesh)
Definition: librnbg.c:53
int _SCOTCHintSort2asc1(SCOTCH_Num *sortPartTb, MMG5_int vertNbr)
void MMG5_swapNod(MMG5_pMesh, MMG5_pPoint, double *, MMG5_pSol, MMG5_int *, MMG5_int, MMG5_int, int)
Definition: librnbg.c:158
MMG mesh structure.
Definition: libmmgtypes.h:605
Structure to store points of a MMG mesh.
Definition: libmmgtypes.h:270