Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIBP-Hummer
BioEM
Commits
9ecded8c
Commit
9ecded8c
authored
Apr 12, 2014
by
David Rohr
Browse files
use debug code only when environment variable set
parent
4f312113
Changes
1
Hide whitespace changes
Inline
Side-by-side
bioem.cpp
View file @
9ecded8c
...
@@ -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 ***************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment