lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 0d51b6d 07/10: Refactor


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 0d51b6d 07/10: Refactor
Date: Thu, 11 Mar 2021 21:12:36 -0500 (EST)

branch: master
commit 0d51b6d1beeaf0891e81670824d7ee3c5d9a16b7
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Refactor
    
    Began to separate initialization of data members from calculations that
    use their values.
---
 i7702.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/i7702.cpp b/i7702.cpp
index 0e5f47b..9df52d4 100644
--- a/i7702.cpp
+++ b/i7702.cpp
@@ -220,7 +220,6 @@ i7702::i7702
     database.query_into(DB_AnnInterestRate7702, A0_);
 
     database.query_into(DB_GuarInt, Bgen_);
-    std::vector<double> guar_int = Bgen_;
 
     // For 7702 purposes, the rate guaranteed by the contract is the
     // highest rate on any potential path, at each duration; thus,
@@ -237,7 +236,6 @@ i7702::i7702
             std::vector<double> guar_loan_spread;
             database.query_into(DB_GuarRegLoanSpread, guar_loan_spread);
             assign(Bflr_, gross_loan_rate - guar_loan_spread);
-            assign(guar_int, Max(guar_int, Bflr_));
             }
         }
 
@@ -252,6 +250,9 @@ i7702::i7702
     database.query_into(DB_CurrAcctValLoad, Dsep_);
     Dsep_ += stratified.minimum_tiered_sepacct_load_for_7702();
 
+    std::vector<double> guar_int = Bgen_;
+    assign(guar_int, Max(guar_int, Bflr_));
+
     gross_.assign(database.length(), 0.0);
     assign
         (gross_



reply via email to

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