summaryrefslogtreecommitdiffstats
path: root/cuda/2d/em.cu
diff options
context:
space:
mode:
Diffstat (limited to 'cuda/2d/em.cu')
-rw-r--r--cuda/2d/em.cu4
1 files changed, 1 insertions, 3 deletions
diff --git a/cuda/2d/em.cu b/cuda/2d/em.cu
index ca09d31..aa272d8 100644
--- a/cuda/2d/em.cu
+++ b/cuda/2d/em.cu
@@ -117,15 +117,13 @@ bool EM::precomputeWeights()
bool EM::iterate(unsigned int iterations)
{
- shouldAbort = false;
-
#if 0
if (useVolumeMask)
precomputeWeights();
#endif
// iteration
- for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) {
+ for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) {
// Do FP of volumeData
zeroProjectionData(D_projData, projPitch, dims);