Skip to content

Commit b2ff9a4

Browse files
mgronckijenkins
authored andcommitted
bugfix
1 parent b4e60de commit b2ff9a4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

OREAnalytics/orea/simm/simmcalculator.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ SimmCalculator::SimmCalculator(const ore::analytics::Crif& crif,
7979
"SIMM Calculator: The result currency (" << resultCcy_ << ") must be a valid ISO currency code");
8080

8181
for (const CrifRecord& cr : crif) {
82+
// Remove empty
83+
if (cr.riskType == CrifRecord::RiskType::Empty) {
84+
continue;
85+
}
8286
// Remove Schedule-only CRIF records
8387
const bool isSchedule = cr.imModel == "Schedule";
8488
if (isSchedule) {
@@ -88,6 +92,8 @@ SimmCalculator::SimmCalculator(const ore::analytics::Crif& crif,
8892
continue;
8993
}
9094

95+
96+
9197
// Check for each netting set whether post/collect regs are populated at all
9298
if (collectRegsIsEmpty_.find(cr.nettingSetDetails) == collectRegsIsEmpty_.end()) {
9399
collectRegsIsEmpty_[cr.nettingSetDetails] = cr.collectRegulations.empty();

0 commit comments

Comments
 (0)