lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 1492645 04/13: Declare two variables in depen


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1492645 04/13: Declare two variables in dependency order
Date: Tue, 14 Apr 2020 12:07:01 -0400 (EDT)

branch: master
commit 149264566258aa8820c1eaacdda6d849b20b606b
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Declare two variables in dependency order
---
 ledger_invariant.cpp      | 4 ++--
 ledger_invariant.hpp      | 2 +-
 ledger_invariant_init.cpp | 1 -
 3 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ledger_invariant.cpp b/ledger_invariant.cpp
index 74788e7..2746076 100644
--- a/ledger_invariant.cpp
+++ b/ledger_invariant.cpp
@@ -196,8 +196,8 @@ void LedgerInvariant::Alloc(int len)
     OtherScalars    ["LastCoiReentryDateJdn" ] = &LastCoiReentryDateJdn  ;
     OtherScalars    ["ListBillDateJdn"       ] = &ListBillDateJdn        ;
     OtherScalars    ["InforceAsOfDateJdn"    ] = &InforceAsOfDateJdn     ;
-    OtherScalars    ["SplitFundAllocation"   ] = &SplitFundAllocation    ;
     OtherScalars    ["GenAcctAllocation"     ] = &GenAcctAllocation      ;
+    OtherScalars    ["SplitFundAllocation"   ] = &SplitFundAllocation    ;
     OtherScalars    ["WriteTsvFile"          ] = &WriteTsvFile           ;
     OtherScalars    ["SupplementalReport"    ] = &SupplementalReport     ;
 
@@ -715,8 +715,8 @@ LedgerInvariant& LedgerInvariant::PlusEq(LedgerInvariant 
const& a_Addend)
     LastCoiReentryDateJdn         = a_Addend.LastCoiReentryDateJdn;
     ListBillDateJdn               = a_Addend.ListBillDateJdn;
     InforceAsOfDateJdn            = a_Addend.InforceAsOfDateJdn;
-    SplitFundAllocation           = SplitFundAllocation   || 
a_Addend.SplitFundAllocation;
     GenAcctAllocation             = a_Addend.GenAcctAllocation;
+    SplitFundAllocation           = SplitFundAllocation   || 
a_Addend.SplitFundAllocation;
     WriteTsvFile                  = WriteTsvFile || a_Addend.WriteTsvFile ;
 
     // The composite has a supplemental report iff every cell has one,
diff --git a/ledger_invariant.hpp b/ledger_invariant.hpp
index 0b2d478..ea151ec 100644
--- a/ledger_invariant.hpp
+++ b/ledger_invariant.hpp
@@ -185,8 +185,8 @@ class LMI_SO LedgerInvariant final
     double          LastCoiReentryDateJdn;
     double          ListBillDateJdn;
     double          InforceAsOfDateJdn;
-    double          SplitFundAllocation;
     double          GenAcctAllocation;
+    double          SplitFundAllocation;
     double          WriteTsvFile;
     double          SupplementalReport;
 
diff --git a/ledger_invariant_init.cpp b/ledger_invariant_init.cpp
index c0dc349..958e858 100644
--- a/ledger_invariant_init.cpp
+++ b/ledger_invariant_init.cpp
@@ -269,7 +269,6 @@ void LedgerInvariant::Init(BasicValues const* b)
     ListBillDateJdn         = calendar_date(b->yare_input_.ListBillDate      
).julian_day_number();
     InforceAsOfDateJdn      = calendar_date(b->yare_input_.InforceAsOfDate   
).julian_day_number();
 
-// Out of order due to dependency--reconsider.
     GenAcctAllocation = 1.0 - premium_allocation_to_sepacct(b->yare_input_);
 
     SplitFundAllocation =



reply via email to

[Prev in Thread] Current Thread [Next in Thread]