-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-conc.cpp
48 lines (45 loc) · 1.1 KB
/
test-conc.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "conc.h"
#include <iostream>
struct ConcData {
VectorXd lnk;
MatrixXd B, matrix;
ConcData() {
int basis = 2;
int species = 11;
B.resize(1, basis);
lnk.resize(species);
matrix.resize(species, basis + 1);
B << 0.00481452, 0.01000039;
lnk << 0, 0, -1.986, -8.251, -17.454, -5.27839, -8.8797, -14.8007, -19.4548,
-31.3681;
// clang-format off
matrix << 1, 0, 0,
0, 1, 0,
0, 1, 1,
0, 1, 2,
0, 1, 3,
1, 1, 2,
1, 1, 3,
1, 2, 4,
1, 2, 5,
1, 2, 6,
1, 2, 7;
// clang-format on
}
} data;
int main() {
Sysc sysc;
sysc.concAlg = ConcAlg::BUGAEVSKY;
sysc.verb = true;
double h = 1.0;
while (h < 14) {
std::cout << "************************* " << h << " *******************************"
<< std::endl;
VectorXd hv(1);
hv.coeffRef(0) = std::exp(std::pow(10.0, -h));
VectorXd lgc(2);
lgc << -7, -7;
nfconc(data.matrix, data.lnk, data.B, hv, lgc, sysc);
h += 0.5;
}
}