Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
- Examples
- MCMC.cpp.
Definition at line 22 of file MCMC.cpp.
27 MPI_Init(&argc, &argv);
29 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
39 if (rank == 0) std::cout <<
"\nusage: " << argv[0] <<
" ModelConf.conf --noMC/MonteCarlo.conf\n" << std::endl;
49 std::string ModelConf = argv[1];
55 std::string MCMCConf = argv[2];
58 std::string FileOut =
"";
61 std::string JobTag =
"";
74 MonteCarlo MC(ModelF, ThObsF, ModelConf, MCMCConf, FileOut, JobTag);
80 if (MCMCConf.compare(
"--noMC") == 0) MC.TestRun(rank);
91 }
catch (
const std::runtime_error& e) {
92 std::cerr << e.what() << std::endl;