diff options
Diffstat (limited to 'cuda/2d/sart.cu')
-rw-r--r-- | cuda/2d/sart.cu | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cuda/2d/sart.cu b/cuda/2d/sart.cu index cf9babc..64973ba 100644 --- a/cuda/2d/sart.cu +++ b/cuda/2d/sart.cu @@ -166,13 +166,11 @@ bool SART::precomputeWeights() bool SART::iterate(unsigned int iterations) { - shouldAbort = false; - if (useVolumeMask) precomputeWeights(); // iteration - for (unsigned int iter = 0; iter < iterations && !shouldAbort; ++iter) { + for (unsigned int iter = 0; iter < iterations && !astra::shouldAbort(); ++iter) { int angle; if (customOrder) { |