summaryrefslogtreecommitdiffstats
path: root/cuda/3d/sirt3d.cu
diff options
context:
space:
mode:
Diffstat (limited to 'cuda/3d/sirt3d.cu')
-rw-r--r--cuda/3d/sirt3d.cu4
1 files changed, 1 insertions, 3 deletions
diff --git a/cuda/3d/sirt3d.cu b/cuda/3d/sirt3d.cu
index 332589e..869b2fd 100644
--- a/cuda/3d/sirt3d.cu
+++ b/cuda/3d/sirt3d.cu
@@ -235,8 +235,6 @@ bool SIRT::setBuffers(cudaPitchedPtr& _D_volumeData,
bool SIRT::iterate(unsigned int iterations)
{
- shouldAbort = false;
-
if (useVolumeMask || useSinogramMask)
precomputeWeights();
@@ -267,7 +265,7 @@ bool SIRT::iterate(unsigned int iterations)
// iteration
- for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) {
+ for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) {
// copy sinogram to projection data
duplicateProjectionData(D_projData, D_sinoData, dims);