gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CGNSConventions.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 //
6 // Contributor(s):
7 // Thomas Toulorge
8 
9 #ifndef CGNS_CONVENTIONS_H
10 #define CGNS_CONVENTIONS_H
11 
12 #include <vector>
13 #include <string>
14 #include "GmshConfig.h"
15 #include "CGNSCommon.h"
16 
17 #if defined(HAVE_LIBCGNS)
18 
19 static const std::string::size_type CGNS_MAX_STR_LEN = 33;
20 
21 // msh to CGNS element type
22 CGNS_ENUMT(ElementType_t) msh2CgnsEltType(int mshTag);
23 
24 // CGNS to msh element type
25 int cgns2MshEltType(CGNS_ENUMT(ElementType_t));
26 
27 std::vector<int> &cgns2MshNodeIndex(int mshTag);
28 
29 // std::vector<int> &msh2CgnsNodeIndex(int mshTag);
30 
31 void msh2CgnsReferenceElement(int mshType, const fullMatrix<double> &mshPts,
32  std::vector<double> &u, std::vector<double> &v,
33  std::vector<double> &w);
34 
35 // Given two sets of parametric coordinates src and dest, that should contain
36 // the same nodes in a different order, compute the reordering ind of set src
37 // to set dest, i.e. src[i] = dest[ind[i]]
38 bool computeReordering(fullMatrix<double> src, fullMatrix<double> dest,
39  std::vector<int> &ind);
40 
41 std::string cgnsString(const std::string &s,
42  std::string::size_type maxLength = CGNS_MAX_STR_LEN - 1);
43 
44 #endif // HAVE_LIBCGNS
45 
46 #endif // CGNS_CONVENTIONS_H
fullMatrix< double >
CGNSCommon.h