/
main.cpp
32 lines (28 loc) · 1.15 KB
/
main.cpp
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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Description:
// + Run the Monte Carlo sampler of the ParaMonte library given the input log-target density function `getLogFunc()`.
// Output:
// + The simulation output files.
// Author:
// + Computational Data Science Lab, Monday 9:03 AM, May 16 2016, ICES, UT Austin
// Visit:
// + https://www.cdslab.org/paramonte
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <cstring>
#include "logfunc.hpp" // getLogFunc, NDIM
#include "paramonte.hpp" // runParaDRAM
int main()
{
char inputFile[] = "./paramonte.in";
int32_t inputFileLen = strlen(inputFile);
int32_t ndim = NDIM;
// C rules for argument passing apply here
runParaDRAM ( ndim
, &getLogFunc
, inputFile
, inputFileLen
);
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////