lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 325848d 07/10: Change order of struct members


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 325848d 07/10: Change order of struct members
Date: Sun, 18 Apr 2021 18:21:03 -0400 (EDT)

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

    Change order of struct members
    
    Move target premium after some more important members.
---
 gpt_cf_triad_test.cpp         | 2 +-
 gpt_commutation_functions.cpp | 2 +-
 gpt_commutation_functions.hpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gpt_cf_triad_test.cpp b/gpt_cf_triad_test.cpp
index 3662896..e708286 100644
--- a/gpt_cf_triad_test.cpp
+++ b/gpt_cf_triad_test.cpp
@@ -308,9 +308,9 @@ gpt_scalar_parms gpt_cf_triad_test::s_parms()
 {
     gpt_scalar_parms z =
         {.duration       =      0
-        ,.target         =   1000.0
         ,.f3bft          = 120000.0
         ,.endt_bft       = 100000.0
+        ,.target         =   1000.0
         ,.chg_sa_amt     = 100000.0
         ,.qab_gio_amt    =  20000.0
         ,.qab_adb_amt    = 100000.0
diff --git a/gpt_commutation_functions.cpp b/gpt_commutation_functions.cpp
index 77e683d..43e6d8f 100644
--- a/gpt_commutation_functions.cpp
+++ b/gpt_commutation_functions.cpp
@@ -236,9 +236,9 @@ double gpt_cf_triad::calculate_premium
 {
     LMI_ASSERT(0 <= args.duration        );
     LMI_ASSERT(args.duration < length_   );
-    LMI_ASSERT(0.0 <= args.target        );
     LMI_ASSERT(0.0 <= args.f3bft         );
     LMI_ASSERT(0.0 <= args.endt_bft      );
+    LMI_ASSERT(0.0 <= args.target        );
     LMI_ASSERT(0.0 <= args.chg_sa_amt    );
     LMI_ASSERT(0.0 <= args.qab_gio_amt   );
     LMI_ASSERT(0.0 <= args.qab_adb_amt   );
diff --git a/gpt_commutation_functions.hpp b/gpt_commutation_functions.hpp
index 917e1ae..3ae59ce 100644
--- a/gpt_commutation_functions.hpp
+++ b/gpt_commutation_functions.hpp
@@ -82,9 +82,9 @@ struct gpt_vector_parms
 struct gpt_scalar_parms
 {
     int    duration       ;
-    double target         ;
     double f3bft          ;
     double endt_bft       ;
+    double target         ;
     double chg_sa_amt     ;
     double qab_gio_amt    ;
     double qab_adb_amt    ;



reply via email to

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