-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.cpp
51 lines (33 loc) · 983 Bytes
/
test.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
#include "headers/brownsys.h"
int main(){
bool equil = true;
bool go = false;
int count=0;
int i;
//brownsys baller(N);
//double cutoff=6*r;
//cout<<"numcrowd = "<<N<<endl;
random_device rd; // Seed RNG
mt19937 gen(rd()); // start RNG
normal_distribution<> distro(0,pow(2*D*h,0.5));
cout<<"number of proteins: "<<N<<endl;
brownsys baller(N,true);
cout<<"1"<<endl;
baller.diff_NNs(true);
cout<<"2"<<endl;
// baller.equilibrate(gen, distro,100);
// #pragma omp parallel for schedule(dynamic)
// for(i=0; i<100; i++)
// {
// brownsys baller(N);
// baller.startNNs();
// baller.equilibrate(gen,distro,1000);
// baller.moveall(gen, distro, count);
// cout<<"beta = "<<(double)(count/(i+1))<<endl;
// }
// cout<<"final beta = "<<count/1000.0<<endl;
/*baller.startNNs(cutoff); // NOT FINISHED. ONLY FINDS IF ITS NEAR MAIN
baller.NCout();
baller.equilibrate(gen,distro,1000);
baller.updateNNs(cutoff);baller.NCout();}*/
return 0;}