File tree Expand file tree Collapse file tree
OREAnalytics/orea/app/analytics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -456,8 +456,7 @@ void XvaAnalyticImpl::amcRun(bool doClassicRun) {
456456 inputs_->exposureSimMarketParams ()->additionalScenarioDataNumberOfCreditStates ());
457457 amcEngine.registerProgressIndicator (progressBar);
458458 amcEngine.registerProgressIndicator (progressLog);
459- // We only need to generate asd, if this does not happen in the classic run
460- if (!doClassicRun)
459+ if (!scenarioData_.empty ())
461460 amcEngine.aggregationScenarioData () = *scenarioData_;
462461 amcEngine.buildCube (amcPortfolio_, amcCube_);
463462 } else {
@@ -484,8 +483,7 @@ void XvaAnalyticImpl::amcRun(bool doClassicRun) {
484483
485484 amcEngine.registerProgressIndicator (progressBar);
486485 amcEngine.registerProgressIndicator (progressLog);
487- // as for the single-threaded case, we only need to generate asd, if this does not happen in the classic run
488- if (!doClassicRun)
486+ if (!scenarioData_.empty ())
489487 amcEngine.aggregationScenarioData () = *scenarioData_;
490488 amcEngine.buildCube (amcPortfolio_);
491489 amcCube_ = boost::make_shared<JointNPVCube>(amcEngine.outputCubes ());
You can’t perform that action at this time.
0 commit comments