[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master cd890b4 8/8: Mark old implementation for expu
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master cd890b4 8/8: Mark old implementation for expunction |
Date: |
Sun, 14 Mar 2021 16:03:31 -0400 (EDT) |
branch: master
commit cd890b4d097e49965de31b85e0cc4359e9e8e932
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Mark old implementation for expunction
---
i7702.cpp | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/i7702.cpp b/i7702.cpp
index 92650d2..edabb42 100644
--- a/i7702.cpp
+++ b/i7702.cpp
@@ -361,6 +361,7 @@ i7702::i7702
constexpr double tolerance {0.0000001};
LMI_ASSERT(no_naar_discount || mm < tolerance);
+#if 1 // 7702 !! remove
// Here begin the dubious calculations that will be replaced.
std::vector<double> guar_int = Bgen_;
assign(guar_int, Max(guar_int, Bflr_));
@@ -396,13 +397,21 @@ i7702::i7702
,Max(Em_, theoretical_naar_discount)
);
ig_ = no_naar_discount ? zero : operative_naar_discount;
+#endif // 1 // 7702 !! remove
- // Test old implementation against new.
initialize();
+#if 1 // 7702 !! remove
+ // Test old implementation against new.
LMI_ASSERT(ic_usual_ == gross_ );
LMI_ASSERT(ic_glp_ == net_glp_);
LMI_ASSERT(ic_gsp_ == net_gsp_);
LMI_ASSERT(ig_usual_ == ig_ );
+#endif // 1 // 7702 !! remove
+ // 7702 !! Temporarily assign new results to old member variables.
+ gross_ = ic_usual_;
+ net_glp_ = ic_glp_ ;
+ net_gsp_ = ic_gsp_ ;
+ ig_ = ig_usual_;
}
void i7702::initialize()
- [lmi-commits] [lmi] master updated (24e01a1 -> cd890b4), Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 21d8366 4/8: Assign and use A1_, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 12df365 6/8: Mark some shortcomings to be remediated soon, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 258a675 1/8: Add and use a "length" data member, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 809d1c4 2/8: Add flags to enable or disable i7702 account-paths, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 6dd530d 3/8: Conditionally override use of loan rates for 7702 interest, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master cd890b4 8/8: Mark old implementation for expunction,
Greg Chicares <=
- [lmi-commits] [lmi] master d59b96b 5/8: Reimplement 7702 interest-rate determination, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master cc9b752 7/8: Remove redundant comments, Greg Chicares, 2021/03/14