-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·65 lines (54 loc) · 1.38 KB
/
Copy pathmain.cpp
File metadata and controls
executable file
·65 lines (54 loc) · 1.38 KB
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
//// include input functions
#include "Input/Argparse.h"
#include "Input/InputRead.h"
#include "Input/ManipulateArgv.h"
#include "PolyMC.h"
#include "MCMethods/ReplicaExchange.h"
#include "MCMethods/TopologyExchange.h"
#define POLYMC_VERSION 0.730
/*
TO:
- Tweezer Torque requires sigma to be set to zero upon initialization for dLK to stay consistent (not sure why).
*/
// Defines
/*
ARMA_DONT_USE_WRAPPER
ARMA_USE_LAPACK
ARMA_USE_BLAS
ARMA_USE_CXX11
ARMA_NO_DEBUG
*/
// linkers
/*
-llapack
-lblas
*/
// Other Linker Options
/*
-larmadillo
*/
int main(int argc, const char **argcv) {
std::cout << "PolyMC version: " << POLYMC_VERSION << std::endl;
arma::arma_version ver;
std::cout << "ARMA version: "<< ver.as_string() << std::endl;
std::vector<std::string> argv(argcv, argcv+argc);
std::string inputfn = "";
inputfn = parse_arg(inputfn, "-in",argv);
// terminate if no input file given
if (inputfn == "") {
std::cout << "Error: No input file provided." << std::endl;
std::exit(0);
}
InputRead * input = new InputRead(inputfn);
if (input->contains_multi("replica_exchange")) {
ReplicaExchange reex(inputfn,argv);
}
else if (input->contains_multi("topology_exchange")) {
TopologyExchange toex(inputfn,argv);
}
else {
PolyMC polyMC(argv);
polyMC.simple_execute();
}
return 0;
}