summaryrefslogtreecommitdiffstats
path: root/src/SartAlgorithm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SartAlgorithm.cpp')
-rw-r--r--src/SartAlgorithm.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/SartAlgorithm.cpp b/src/SartAlgorithm.cpp
index 94460ba..7a3947d 100644
--- a/src/SartAlgorithm.cpp
+++ b/src/SartAlgorithm.cpp
@@ -288,8 +288,6 @@ void CSartAlgorithm::run(int _iNrIterations)
// check initialized
ASTRA_ASSERT(m_bIsInitialized);
- m_bShouldAbort = false;
-
// data projectors
CDataProjectorInterface* pFirstForwardProjector;
CDataProjectorInterface* pForwardProjector;
@@ -334,7 +332,7 @@ void CSartAlgorithm::run(int _iNrIterations)
// iteration loop
- for (int iIteration = 0; iIteration < _iNrIterations && !m_bShouldAbort; ++iIteration) {
+ for (int iIteration = 0; iIteration < _iNrIterations && !shouldAbort(); ++iIteration) {
int iProjection = m_piProjectionOrder[m_iIterationCount % m_iProjectionCount];