Skip to content

Commit 5452f10

Browse files
mgronckijenkins
authored andcommitted
QPR-12427 code cleanup debug output
1 parent bb3ce90 commit 5452f10

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

OREAnalytics/orea/app/analytics/xvaanalytic.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,6 @@ void XvaAnalyticImpl::runAnalytic(const boost::shared_ptr<ore::data::InMemoryLoa
758758
map<string, string> nettingSetMap = analytic()->portfolio()->nettingSetMap();
759759
auto report = boost::make_shared<InMemoryReport>();
760760
ReportWriter(inputs_->reportNaString()).writeCube(*report, cube_, nettingSetMap);
761-
auto csvReprt = boost::make_shared<CSVFileReport>("test_report.csv");
762-
ReportWriter(inputs_->reportNaString()).writeCube(*csvReprt, cube_, nettingSetMap);
763761
analytic()->reports()["XVA"]["rawcube"] = report;
764762
}
765763

OREAnalytics/orea/engine/valuationengine.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ void ValuationEngine::buildCube(const boost::shared_ptr<data::Portfolio>& portfo
192192
double upTime = 0;
193193
++cubeDateIndex;
194194
Date valueDate = dg_->valuationDates()[i];
195-
std::cout << to_string(valueDate) << std::endl;
196195
Date closeOutDate = dg_->closeOutDateFromValuationDate(valueDate);
197196
std::tie(priceTime, upTime) = populateCube(
198197
valueDate, cubeDateIndex, sample, true, false, scenarioUpdated, trades, tradeHasError, calculators,
@@ -222,7 +221,6 @@ void ValuationEngine::buildCube(const boost::shared_ptr<data::Portfolio>& portfo
222221
QL_REQUIRE(closeOutDateToValueDateIndex.count(d) == 1 && !closeOutDateToValueDateIndex[d].empty(),
223222
"Need to calculate valuation date before close out date");
224223
for (size_t& valueDateIndex : closeOutDateToValueDateIndex[d]) {
225-
std::cout << "Close Out Date " << d << " valuationIndex " << valueDateIndex << std::endl;
226224
std::tie(priceTime, upTime) =
227225
populateCube(d, valueDateIndex, sample, false, mporStickyDate, scenarioUpdated, trades,
228226
tradeHasError, calculators, outputCube, outputCubeNettingSet, counterparties,

OREAnalytics/orea/scenario/clonedscenariogenerator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ boost::shared_ptr<Scenario> ClonedScenarioGenerator::next(const Date& d) {
4949
} else {
5050
auto it = std::find(dates_.begin(), dates_.end(), d);
5151
size_t pos = (nDate_ - 1) * dates_.size() + std::distance(dates_.begin(), it);
52-
std::cout << "ClonedScenarioGenerator::next(" << d << "):" << nDate_ << " " << std::distance(dates_.begin(), it)
53-
<< std::endl;
5452
QL_REQUIRE(it != dates_.end(), "ClonedScenarioGenerator::next(" << d << "): invalid date " << d);
5553
return scenarios_[pos];
5654
}

0 commit comments

Comments
 (0)