mmg2d
librnbg.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*/
32#ifdef USE_SCOTCH
33
34#ifndef __RENUM__
35#define __RENUM__
36
37#include <scotch.h>
38
39#define HASHPRIME 37
40
41#define STRINGIFY(x) #x
42#define TOSTRING(x) STRINGIFY(x)
43
44#define SCOTCH_5 (!strcmp(TOSTRING(SCOTCH_VERSION),"5.0") || \
45 !strcmp(TOSTRING(SCOTCH_VERSION),"5.1") || !strcmp(TOSTRING(SCOTCH_VERSION),"5"))
46
47#define SCOTCH_6 !strcmp(TOSTRING(SCOTCH_VERSION),"6")
48
49#define CHECK_SCOTCH(t,m,e) if(0!=t){perror(m);return e;}
50
51typedef struct MeshGraphHash_ {
52 int vertNum;
53 int vertEnd;
54} MeshGraphHash;
55
56int _SCOTCHintSort2asc1(SCOTCH_Num * sortPartTb, int vertNbr);
57int MMG5_kPartBoxCompute(SCOTCH_Graph*, int, int, SCOTCH_Num*,MMG5_pMesh);
58void MMG5_swapNod(MMG5_pMesh,MMG5_pPoint, double*, MMG5_pSol,int*, int, int, int);
59
60#endif /* __RENUM__ */
61#endif
MMG mesh structure.
Definition: libmmgtypes.h:575
Structure to store points of a MMG mesh.
Definition: libmmgtypes.h:252
Definition: libmmgtypes.h:633