[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 =
- [lmi-commits] [lmi] master updated (9537a20 -> 45cf6f4), Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 521916f 06/13: Expunge a pointless comment, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master b746578 02/13: Remove a defect marker [346], Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 11c3b2d 07/13: Mark skipped initializations uniformly, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 1492645 04/13: Declare two variables in dependency order,
Greg Chicares <=
- [lmi-commits] [lmi] master 25cc457 05/13: Mark formerly-missing variables as dynamically-assigned, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 278dab3 10/13: Explain some curious comments, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 180c84e 03/13: Initialize ledger members in declaration order, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 517a8fe 01/13: Remove a defect marker: refractory compositing issue [347], Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master e09ae5e 09/13: Improve documentation, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 664a0df 11/13: Expunge unused ledger vector 'TgtPrem', Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 45cf6f4 13/13: Move initialization of some ledger members, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master 1611b81 12/13: Expunge several unused ledger scalars, Greg Chicares, 2020/04/14
- [lmi-commits] [lmi] master e653634 08/13: Regularize whitespace, Greg Chicares, 2020/04/14