-
Notifications
You must be signed in to change notification settings - Fork 0
/
acs_headers.h
136 lines (109 loc) · 2.75 KB
/
acs_headers.h
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
* acs_headers.h
* acsSIM
*
* Created by Alessandro Filisetti on 09/03/09.
* Copyright 2014 __European Centre for Living Technology__. All rights reserved.
*
*/
//prova2 cin.ignore().get();
#ifndef ACS_HEADERS
#define ACS_HEADERS
// LIBRARIES
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <sstream>
#include <vector>
#include <deque>
#include <cmath>
#include <cstdlib>
#include <clocale> // Probably this library can be removed after QT removing process will be finished
#include <ctime>
#include "Timer.h" //library for computing time
#include "mtrand.h"
// TYPEDEF
typedef long double acs_double;
typedef unsigned long int acs_longInt;
typedef unsigned int acs_int;
// CONSTANTS
#define __SOFTVERSION__ "8.0b20150427.76"
#define __SOFTVERSIONCOODE__ 2015042776
// DEBUG LEVELS
#define MINIMAL_PROMPT -1
#define RUNNING_VERSION 0
#define SMALL_DEBUG 1
#define MEDIUM_DEBUG 2
#define HIGH_DEBUG 3
#define FINDERRORDURINGRUNTIME -10
#define COMPLEXSTUFF -20
#define GILLESPIESTUFF -30
// RANDOM INITIALIZATION
#define RANDOMRANGE random()
// SYSTEM TYPE
#define CLOSESYSTEM 0
#define CSTRSYSTEM 1
#define PROTOCELLFLUXBUFFERED 2
#define PROTOCELLFLUXFINITE 3
#define SEMIPERMEABLESYSTEM 4
// INITIAL SPECIES CONCENTRATION DISTRIBUTION
#define PROPORTIONALMOLECULEAMOUNT 1
#define UNIFORMMOLECULEAMOUNT 2
#define INVPROPORTIONALMOLECULEAMOUNT 3
// POSSIBLE REACTIONS
#define CONDENSATION 0
#define CLEAVAGE 1
#define COMPLEXFORMATION 2
#define COMPLEXDEGRADATION 3
#define SPECIESDECAY 4
#define PHOSPHORILATION 5
#define ENDO_CLEAVAGE 6
#define ENDO_CONDENSATION 7
#define ENDO_COMPLEXFORMATION 8
#define ENERGYEFFLUX 9
#define SPONTANEOUS_CONDENSATION 10
#define SPONTANEOUS_CLEAVAGE 11
// SOLUBILITY
#define SOLUBLE 1
#define PRECIPITATED 0
// ENERGY
#define ESOERGONIC 1
#define ENDOERGONIC 0
#define CLEAVAGEBASED 1
#define CONDENSATIONBASED 0
#define ENERGYBASED 1
#define ENERGYFREE 0
#define TRUENRG '1'
#define FALSENRG '0'
#define ENERGIZABLE 1
#define NOTENERGIZABLE 0
#define SUBSTRATELOAD 0
#define CATALYSTLOAD 1
#define BOTHLOAD 2
#define COMPLEXLOAD 3
#define NOTHINGLOAD 4
// REACTION CREATION TYPE
#define NEWREACTIONS 1
#define UPGRADEREACTIONS 0
// REATIONS MISC
#define NOSPONTANEOUS 0
// SPECIAL NUMBERS
#define NEP 2.7182818284590452353602874
#define AVO 6.02214179e+23
#define PI 3.14159265358979
// MINIMAL MULTIPLICATOR FOR MINIMAL REACTION TIME
#define MINIMALRCTTIMEMULTI 100
//IF THERE IS NO IDCOMPLEX
#define NOCOMPLEX -1
//WRITE TO FILE EVERY...
#define N_BUFFER 500
//PROMPT SIMUATION STATE EVERY...
#define PROMPT_TIME 10000
//MAX NON VOLUME GROWTH STEPS
#define NOVOLUMEGROWTHMAXSTEPS 1000
//MAX ALLOWABLE CONCENTRATION
#define MAXALLOWCONCENTRATION 1
using namespace std;
#endif