| [a0bcf1] | 1 | /** \file defs.hpp | 
|---|
|  | 2 | * | 
|---|
|  | 3 | * Constant definitons and enumerations. | 
|---|
|  | 4 | * | 
|---|
|  | 5 | */ | 
|---|
|  | 6 |  | 
|---|
|  | 7 | #ifndef DEFS_HPP_ | 
|---|
|  | 8 | #define DEFS_HPP_ | 
|---|
|  | 9 |  | 
|---|
|  | 10 | using namespace std; | 
|---|
|  | 11 |  | 
|---|
|  | 12 | #define MYEPSILON 1e-13   //!< machine epsilon precision | 
|---|
|  | 13 | #define NDIM  3   //!< number of spatial dimensions | 
|---|
|  | 14 | #define MAX_ELEMENTS 128  //!< maximum number of elements for certain lookup tables | 
|---|
|  | 15 | #define AtomicLengthToAngstroem  0.52917721 //!< conversion factor from atomic length/bohrradius to angstroem | 
|---|
|  | 16 | #define BONDTHRESHOLD 0.5   //!< CSD threshold in bond check which is the width of the interval whose center is the sum of the covalent radii | 
|---|
|  | 17 |  | 
|---|
| [370060] | 18 | #define VERSIONSTRING "v1.0" | 
|---|
|  | 19 |  | 
|---|
| [38c017] | 20 | #define LocalPath "./" | 
|---|
|  | 21 |  | 
|---|
| [c75363] | 22 | //enum BondOrderScheme { NoScheme, BottomUp, TopDown, ANOVA, Combined }; //!< Fragmentation scheme used in BOSS | 
|---|
| [a0bcf1] | 23 |  | 
|---|
|  | 24 | enum EdgeType { Undetermined, TreeEdge, BackEdge }; //!< edge type in a graph after Depth-First-Search analysis. | 
|---|
|  | 25 |  | 
|---|
|  | 26 | enum Shading { white, lightgray, darkgray, black };  //!< color in Breadth-First-Search analysis | 
|---|
|  | 27 |  | 
|---|
| [c75363] | 28 | //enum CutCyclicBond { KeepBond,  SaturateBond }; //!< Saturation scheme either atom- or bondwise | 
|---|
| [a0bcf1] | 29 |  | 
|---|
|  | 30 | // Specifting whether a value in the parameter file must be specified or is optional | 
|---|
|  | 31 | enum necessity { optional,    //!< parameter is optional, if not given sensible value is chosen | 
|---|
|  | 32 | critical     //!< parameter must be given or programme won't initiate | 
|---|
|  | 33 | }; | 
|---|
|  | 34 |  | 
|---|
| [370060] | 35 | // Specifying the status of the on command line given config file | 
|---|
|  | 36 | enum ConfigStatus { absent, empty, present }; | 
|---|
|  | 37 |  | 
|---|
| [a0bcf1] | 38 | // Specifying the cast type to be read of a parameter, see ParseForParameter() | 
|---|
|  | 39 | enum value_type { string_type, double_type, int_type, row_int, row_double, grid, lower_trigrid, upper_trigrid}; | 
|---|
|  | 40 |  | 
|---|
| [c510a7] | 41 | // maximum length of any char array | 
|---|
|  | 42 | #define MAXSTRINGSIZE 255 | 
|---|
|  | 43 |  | 
|---|
| [d982bb] | 44 | // various standard filenames | 
|---|
| [9bd230] | 45 | #define DEFAULTCONFIG "main_pcp_linux" | 
|---|
| [d982bb] | 46 | #define KEYSETFILE "KeySets.dat" | 
|---|
|  | 47 | #define ADJACENCYFILE "Adjacency.dat" | 
|---|
| [115bf4] | 48 | #define TEFACTORSFILE "TE-Factors.dat" | 
|---|
|  | 49 | #define FORCESFILE "Forces-Factors.dat" | 
|---|
| [a3ff7b2] | 50 | #define ORDERATSITEFILE "OrderAtSite.dat" | 
|---|
| [c84895] | 51 | #define ENERGYPERFRAGMENT "EnergyPerFragment" | 
|---|
| [d982bb] | 52 | #define FRAGMENTPREFIX "BondFragment" | 
|---|
|  | 53 | #define STANDARDCONFIG "unknown.conf" | 
|---|
|  | 54 | #define STANDARDELEMENTSDB "elements.db" | 
|---|
|  | 55 | #define STANDARDVALENCEDB "valence.db" | 
|---|
|  | 56 | #define STANDARDORBITALDB "orbitals.db" | 
|---|
|  | 57 | #define STANDARDHBONDDISTANCEDB "Hbonddistance.db" | 
|---|
|  | 58 | #define STANDARDHBONDANGLEDB "Hbondangle.db" | 
|---|
|  | 59 |  | 
|---|
| [c75363] | 60 | #define UPDATECOUNT 10  //!< update ten sites per BOSSANOVA interval | 
|---|
| [a0bcf1] | 61 |  | 
|---|
|  | 62 | #endif /*DEFS_HPP_*/ | 
|---|