source: molecuilder/src/defs.hpp@ 310b25

Last change on this file since 310b25 was a3ff7b2, checked in by Frederik Heber <heber@…>, 17 years ago

molecule::CheckOrderAtSite() now interprets negative Orders as adaptive increase by parsing EnergyPerFragment.da
t

positive Order is global increase till all sites have at least this order, Order 0 means single global increase step, negative Order is the exponent in 10{-Order} to give the threshold value: ENERGYPERFRAGMENT is scanned in
to a map (sorted by values) and all fragments still above the threshold are taken into AtomMask for increase. Jo
iner has to write this file with (Root id of Fragment, energy contribution) pairs.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1/** \file defs.hpp
2 *
3 * Constant definitons and enumerations.
4 *
5 */
6
7#ifndef DEFS_HPP_
8#define DEFS_HPP_
9
10using 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
18#define VERSIONSTRING "v1.0"
19
20//enum BondOrderScheme { NoScheme, BottomUp, TopDown, ANOVA, Combined }; //!< Fragmentation scheme used in BOSS
21
22enum EdgeType { Undetermined, TreeEdge, BackEdge }; //!< edge type in a graph after Depth-First-Search analysis.
23
24enum Shading { white, lightgray, darkgray, black }; //!< color in Breadth-First-Search analysis
25
26//enum CutCyclicBond { KeepBond, SaturateBond }; //!< Saturation scheme either atom- or bondwise
27
28// Specifting whether a value in the parameter file must be specified or is optional
29enum necessity { optional, //!< parameter is optional, if not given sensible value is chosen
30 critical //!< parameter must be given or programme won't initiate
31 };
32
33// Specifying the status of the on command line given config file
34enum ConfigStatus { absent, empty, present };
35
36// Specifying the cast type to be read of a parameter, see ParseForParameter()
37enum value_type { string_type, double_type, int_type, row_int, row_double, grid, lower_trigrid, upper_trigrid};
38
39// maximum length of any char array
40#define MAXSTRINGSIZE 255
41
42// various standard filenames
43#define DEFAULTCONFIG "main_pcp_linux"
44#define KEYSETFILE "KeySets.dat"
45#define ADJACENCYFILE "Adjacency.dat"
46#define TEFACTORSFILE "TE-Factors.dat"
47#define FORCESFILE "Forces-Factors.dat"
48#define ORDERATSITEFILE "OrderAtSite.dat"
49#define ENERGYPERFRAGMENT "EnergyPerFragment.dat"
50#define FRAGMENTPREFIX "BondFragment"
51#define STANDARDCONFIG "unknown.conf"
52#define STANDARDELEMENTSDB "elements.db"
53#define STANDARDVALENCEDB "valence.db"
54#define STANDARDORBITALDB "orbitals.db"
55#define STANDARDHBONDDISTANCEDB "Hbonddistance.db"
56#define STANDARDHBONDANGLEDB "Hbondangle.db"
57
58#define UPDATECOUNT 10 //!< update ten sites per BOSSANOVA interval
59
60#endif /*DEFS_HPP_*/
Note: See TracBrowser for help on using the repository browser.