summaryrefslogtreecommitdiffstats
path: root/src/SirtAlgorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SirtAlgorithm.cpp')
-rw-r--r--src/SirtAlgorithm.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/SirtAlgorithm.cpp b/src/SirtAlgorithm.cpp
index 3ea0a24..f08e8b2 100644
--- a/src/SirtAlgorithm.cpp
+++ b/src/SirtAlgorithm.cpp
@@ -199,8 +199,6 @@ void CSirtAlgorithm::run(int _iNrIterations)
// check initialized
ASTRA_ASSERT(m_bIsInitialized);
- m_bShouldAbort = false;
-
int iIteration = 0;
// data projectors
@@ -290,7 +288,7 @@ void CSirtAlgorithm::run(int _iNrIterations)
// iteration loop
- for (; iIteration < _iNrIterations && !m_bShouldAbort; ++iIteration) {
+ for (; iIteration < _iNrIterations && !shouldAbort(); ++iIteration) {
// forward projection and difference calculation
pForwardProjector->project();