-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.cpp
More file actions
46 lines (33 loc) · 1.04 KB
/
Copy pathmain.cpp
File metadata and controls
46 lines (33 loc) · 1.04 KB
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 "CavityDetection.h"
//#include <chrono>
#include <boost/timer.hpp>
int main(int argc, char* argv[])
{
CavityDetection cd;
std::stringstream ssDepth(argv[3]);
std::stringstream ssArea(argv[4]);
std::stringstream ssVolume(argv[5]);
double depth, area, volume;
ssDepth >> depth;
ssArea >> area;
ssVolume >> volume;
//std::chrono::high_resolution_clock::time_point t1 = std::chrono::high_resolution_clock::now();
boost::timer t;
cd.InitVDB(200, 1.0);
cd.InitMoleculerSurface(argv[1]);
cd.InitMembrane();
cd.setParameters(depth, area, volume);
cd.countActiveVoxels();
cd.FirstPass();
cd.SecondPass();
std::cout << "Start collecting atom info..."<< std::endl;
cd.PocketAtomMap(argv[2]);
//std::chrono::high_resolution_clock::time_point t2 = std::chrono::high_resolution_clock::now();
//std::chrono::duration<double> elapsed = t2 - t1;
//std::cout << "Execution Time: " << elapsed.count() << std::endl;
//cd.OutputInfo(elapsed.count());
double elapsed_time = t.elapsed();
cd.OutputInfo(elapsed_time);
//cd.View();
return 1;
}