Commit 9ecded8c authored by David Rohr's avatar David Rohr
Browse files

use debug code only when environment variable set

parent 4f312113
...@@ -37,12 +37,12 @@ ostream& operator<<(ostream& os, const vector<T>& v) ...@@ -37,12 +37,12 @@ ostream& operator<<(ostream& os, const vector<T>& v)
bioem::bioem() bioem::bioem()
{ {
} }
bioem::~bioem() bioem::~bioem()
{ {
} }
int bioem::configure(int ac, char* av[]) int bioem::configure(int ac, char* av[])
...@@ -119,18 +119,18 @@ int bioem::configure(int ac, char* av[]) ...@@ -119,18 +119,18 @@ int bioem::configure(int ac, char* av[])
cout << "Reading model file in PDB format.\n"; cout << "Reading model file in PDB format.\n";
Model.readPDB=true; Model.readPDB=true;
} }
if (vm.count("DumpMaps")) if (vm.count("DumpMaps"))
{ {
cout << "Dumping Maps after reading from file.\n"; cout << "Dumping Maps after reading from file.\n";
RefMap.dumpMap = true; RefMap.dumpMap = true;
} }
if (vm.count("LoadMapDump")) if (vm.count("LoadMapDump"))
{ {
cout << "Loading Map dump.\n"; cout << "Loading Map dump.\n";
RefMap.loadMap = true; RefMap.loadMap = true;
} }
if (vm.count("Particlesfile")) if (vm.count("Particlesfile"))
{ {
...@@ -163,11 +163,13 @@ int bioem::configure(int ac, char* av[]) ...@@ -163,11 +163,13 @@ int bioem::configure(int ac, char* av[])
/****************** Precalculating Necessary Stuff *********************/ /****************** Precalculating Necessary Stuff *********************/
precalculate(); precalculate();
param.nTotGridAngles = 10; if (getenv("BIOEM_DEBUG_BREAK"))
param.nTotCTFs = 10; {
//param.param_device.maxDisplaceCenter = 0; param.nTotGridAngles = atoi(getenv("BIOEM_DEBUG_BREAK"));
param.nTotCTFs = atoi(getenv("BIOEM_DEBUG_BREAK"));
}
deviceInit(); deviceInit();
return(0); return(0);
...@@ -231,7 +233,7 @@ int bioem::run() ...@@ -231,7 +233,7 @@ int bioem::run()
deviceStartRun(); deviceStartRun();
/******************************** MAIN CYCLE ******************************************/ /******************************** MAIN CYCLE ******************************************/
/*** Declaring Private variables for each thread *****/ /*** Declaring Private variables for each thread *****/
mycomplex_t* proj_mapFFT; mycomplex_t* proj_mapFFT;
bioem_map conv_map; bioem_map conv_map;
...@@ -280,7 +282,7 @@ int bioem::run() ...@@ -280,7 +282,7 @@ int bioem::run()
} }
//deallocating fftw_complex vector //deallocating fftw_complex vector
fftw_free(proj_mapFFT); fftw_free(proj_mapFFT);
deviceFinishRun(); deviceFinishRun();
/************* Writing Out Probabilities ***************/ /************* Writing Out Probabilities ***************/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment