/usr/include/gmsh/CGNSOptions.h is in libgmsh-dev 2.15.0+dfsg1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | // Gmsh - Copyright (C) 1997-2016 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@onelab.info>.
//
// CGNSOptions.h - Copyright (C) 2008 S. Guzik, C. Geuzaine, J.-F. Remacle
#ifndef _CGNSOPTIONS_H_
#define _CGNSOPTIONS_H_
#include <string>
class CGNSOptions
{
public:
enum CGNSLocationType {
LocVertex = 0,
LocFace = 1
};
std::string baseName;
std::string zoneName;
std::string interfaceName;
std::string patchName;
int gridConnectivityLocation; // Location of connectivity(values
// CGNSLocationType)
int bocoLocation; // Location of BC (values
// CGNSLocationType)
int normalSource; // Source for BC normal data
// 0 - do not write normals
// 1 - geometry
// 2 - elements
int vectorDim; // Number of dimensions in a vector
// (only relevant for a 2D mesh)
bool writeBC;
bool writeUserDef; // T - write user-defined elements for
// element types unsupported by CGNS
CGNSOptions(){ setDefaults(); }
~CGNSOptions(){}
void setDefaults()
{
baseName = "Base_1";
zoneName = "Zone_&I%4&";
interfaceName = "Interface_&I%4&";
patchName = "Patch_&I%4&";
gridConnectivityLocation = 0;
bocoLocation = 0;
normalSource = 1;
vectorDim = 2;
writeBC = true;
writeUserDef = false;
}
};
#endif
|