--------------------------------------------------------------------------------------- Initialize - Config
| 97 | //--------------------------------------------------------------------------------------- |
| 98 | // Initialize - Config |
| 99 | bool CSirtAlgorithm::initialize(const Config& _cfg) |
| 100 | { |
| 101 | assert(!m_bIsInitialized); |
| 102 | |
| 103 | ConfigReader<CAlgorithm> CR("SirtAlgorithm", this, _cfg); |
| 104 | |
| 105 | // initialization of parent class |
| 106 | if (!CReconstructionAlgorithm2D::initialize(_cfg)) { |
| 107 | return false; |
| 108 | } |
| 109 | |
| 110 | bool ok = true; |
| 111 | |
| 112 | ok &= CR.getOptionNumerical("Relaxation", m_fLambda, 1.0f); |
| 113 | |
| 114 | if (!ok) |
| 115 | return false; |
| 116 | |
| 117 | // init data objects and data projectors |
| 118 | _init(); |
| 119 | |
| 120 | // success |
| 121 | m_bIsInitialized = _check(); |
| 122 | return m_bIsInitialized; |
| 123 | } |
| 124 | |
| 125 | //--------------------------------------------------------------------------------------- |
| 126 | // Initialize - C++ |
nothing calls this directly
no test coverage detected