Skip to content

Commit 717fec2

Browse files
rolandlichtersjenkins
authored andcommitted
always register the progress bar
1 parent 9528888 commit 717fec2

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

OREAnalytics/orea/app/analytic.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,7 @@ void XvaAnalyticImpl::buildClassicCube(const boost::shared_ptr<Portfolio>& portf
844844
// single-threaded engine run
845845

846846
ValuationEngine engine(inputs_->asof(), grid_, simMarket_);
847-
if (ConsoleLog::instance().enabled())
848-
engine.registerProgressIndicator(progressBar);
847+
engine.registerProgressIndicator(progressBar);
849848
engine.registerProgressIndicator(progressLog);
850849
engine.buildCube(portfolio, cube_, calculators(), analytic()->configurations().scenarioGeneratorData->withMporStickyDate(),
851850
nettingSetCube_, cptyCube_, cptyCalculators());
@@ -889,8 +888,7 @@ void XvaAnalyticImpl::buildClassicCube(const boost::shared_ptr<Portfolio>& portf
889888
boost::make_shared<ore::analytics::ScenarioFilter>(), inputs_->refDataManager(),
890889
*inputs_->iborFallbackConfig(), true, false, cubeFactory, {}, cptyCubeFactory, "xva-simulation");
891890

892-
if (ConsoleLog::instance().enabled())
893-
engine.registerProgressIndicator(progressBar);
891+
engine.registerProgressIndicator(progressBar);
894892
engine.registerProgressIndicator(progressLog);
895893

896894
engine.buildCube(portfolio, calculators, cptyCalculators,
@@ -991,8 +989,7 @@ void XvaAnalyticImpl::amcRun(bool doClassicRun) {
991989
AMCValuationEngine amcEngine(model_, inputs_->scenarioGeneratorData(), analytic()->market(),
992990
inputs_->exposureSimMarketParams()->additionalScenarioDataIndices(),
993991
inputs_->exposureSimMarketParams()->additionalScenarioDataCcys());
994-
if (ConsoleLog::instance().enabled())
995-
amcEngine.registerProgressIndicator(progressBar);
992+
amcEngine.registerProgressIndicator(progressBar);
996993
amcEngine.registerProgressIndicator(progressLog);
997994
// We only need to generate asd, if this does not happen in the classic run
998995
if (!doClassicRun)
@@ -1017,8 +1014,8 @@ void XvaAnalyticImpl::amcRun(bool doClassicRun) {
10171014
inputs_->marketConfig("eqcalibration"), inputs_->marketConfig("infcalibration"),
10181015
inputs_->marketConfig("crcalibration"), inputs_->marketConfig("simulation"), inputs_->refDataManager(),
10191016
*inputs_->iborFallbackConfig(), true, cubeFactory);
1020-
if (ConsoleLog::instance().enabled())
1021-
amcEngine.registerProgressIndicator(progressBar);
1017+
1018+
amcEngine.registerProgressIndicator(progressBar);
10221019
amcEngine.registerProgressIndicator(progressLog);
10231020
// as for the single-threaded case, we only need to generate asd, if this does not happen in the classic run
10241021
if (!doClassicRun)

0 commit comments

Comments
 (0)