-
Notifications
You must be signed in to change notification settings - Fork 0
/
exoplanet_init.cpp
72 lines (55 loc) · 1.4 KB
/
exoplanet_init.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include "exoplanet_hyperpara.h"
#include "exoplanet_init.h"
using namespace std;
ExoplanetInit::ExoplanetInit(string data_name, size_t num_comp, const ExoplanetHyperpara & hyper) {
bool found = 0;
if (data_name.compare("data1") == 0 && num_comp == 0) {
found = 1;
init.resize(num_comp * 5 + 2);
init[0] = 2.5;
init[1] = 6000.;
}
if (data_name.compare("data1") == 0 && num_comp == 1) {
found = 1;
init.resize(num_comp * 5 + 2);
init[0] = 100.;
init[1] = 2*M_PI/100.;
init[2] = 1.;
init[3] = 0.05;
init[4] = 4.;
init[5] = 2.;
init[6] = 100.;
}
if (data_name.compare("data1") == 0 && num_comp == 2) {
found = 1;
init.resize(num_comp * 5 + 2);
init[0] = 10.;
init[1] = 2*M_PI/30.;
init[2] = 2.2;
init[3] = 0.5;
init[4] = 5;
init[5] = 100.;
init[6] = 2*M_PI/100.;
init[7] = 1;
init[8] = 0.05;
init[9] = 4;
init[10] = 2.;
init[11] = 30.;
}
if (found == 0) {
cerr << "Exoplanet Initialization Failed!" << endl;
cerr << "Data Name or Model couldn't be found!" << endl;
}
}
ExoplanetInit::ExoplanetInit(string data_name, size_t num_comp, size_t num_d, const ExoplanetHyperpara & hyper) {
bool found = 0;
if (found == 0) {
cerr << "Exoplanet Initialization Failed!" << endl;
cerr << "Data Name or Model couldn't be found!" << endl;
}
}