Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix narrowing-conversions (part 2b - floats): slightly different outputs
warning: narrowing conversion from 'double' to 'float' [bugprone-narrowing-conversions,cppcoreguidelines-narrowing-conversions] General approach: change smaller variable to larger type as required by assignment * mostly float -> unsigned double --> SOILWAT2 now completed the shift from float to double type and no longer uses float/RealF (but retains minimal support for STEPWAT2) NOTE: --> this commit **does** slightly change output of example simulation, e.g., `make bin_run` --> R's `all.equal()` comparison against v8.0.0 [1] "Component “SURFACEWATER_surfaceWater_cm”: Mean relative difference: 2.571445e-07" [2] "Component “EVAPSURFACE_evap_total”: Mean relative difference: 0.0001101079" [3] "Component “EVAPSURFACE_evap_surfaceWater”: Mean relative difference: 0.0001101079" [4] "Component “AET_evapotr_cm”: Mean relative difference: 7.47542e-06" [5] "Component “AET_tran_cm”: Mean relative difference: 1.1993e-05" [6] "Component “AET_esoil_cm”: Mean relative difference: 1.702403e-05" [7] "Component “AET_esurf_cm”: Mean relative difference: 0.0001101079" [8] "Component “DEEPSWC_lowLayerDrain_cm”: Mean relative difference: 1.615019e-07" [1] "Component “VWCBULK_Lyr_1”: Mean relative difference: 6.787685e-06" [2] "Component “VWCBULK_Lyr_2”: Mean relative difference: 4.809277e-06" [3] "Component “VWCBULK_Lyr_3”: Mean relative difference: 3.838998e-06" [4] "Component “VWCBULK_Lyr_4”: Mean relative difference: 4.390425e-06" [5] "Component “VWCBULK_Lyr_5”: Mean relative difference: 4.581049e-06" [6] "Component “VWCBULK_Lyr_7”: Mean relative difference: 7.211278e-06" [7] "Component “VWCBULK_Lyr_8”: Mean relative difference: 7.279133e-06" [8] "Component “VWCMATRIC_Lyr_1”: Mean relative difference: 5.96451e-06" [9] "Component “VWCMATRIC_Lyr_2”: Mean relative difference: 4.620794e-06" [10] "Component “VWCMATRIC_Lyr_3”: Mean relative difference: 3.212984e-06" [11] "Component “VWCMATRIC_Lyr_4”: Mean relative difference: 3.758796e-06" [12] "Component “VWCMATRIC_Lyr_5”: Mean relative difference: 3.577111e-06" [13] "Component “VWCMATRIC_Lyr_6”: Mean relative difference: 3.718947e-06" [14] "Component “VWCMATRIC_Lyr_7”: Mean relative difference: 5.589148e-06" [15] "Component “VWCMATRIC_Lyr_8”: Mean relative difference: 5.922433e-06" [16] "Component “SWCBULK_Lyr_1”: Mean relative difference: 1.282636e-06" [17] "Component “SWCBULK_Lyr_2”: Mean relative difference: 9.888887e-07" [18] "Component “SWCBULK_Lyr_3”: Mean relative difference: 4.132047e-07" [19] "Component “SWCBULK_Lyr_4”: Mean relative difference: 4.590823e-07" [20] "Component “SWCBULK_Lyr_5”: Mean relative difference: 4.672742e-07" [21] "Component “SWCBULK_Lyr_6”: Mean relative difference: 2.265474e-07" [22] "Component “SWCBULK_Lyr_7”: Mean relative difference: 3.397264e-07" [23] "Component “SWCBULK_Lyr_8”: Mean relative difference: 3.46075e-07" [24] "Component “SWABULK_Lyr_1”: Mean relative difference: 1.452727e-06" [25] "Component “SWABULK_Lyr_2”: Mean relative difference: 2.04562e-06" [26] "Component “SWABULK_Lyr_3”: Mean relative difference: 1.441732e-06" [27] "Component “SWABULK_Lyr_4”: Mean relative difference: 1.62593e-06" [28] "Component “SWABULK_Lyr_5”: Mean relative difference: 2.658106e-06" [29] "Component “SWABULK_Lyr_6”: Mean relative difference: 1.432752e-06" [30] "Component “SWABULK_Lyr_7”: Mean relative difference: 1.706254e-06" [31] "Component “SWABULK_Lyr_8”: Mean relative difference: 1.514629e-06" [32] "Component “SWAMATRIC_Lyr_1”: Mean relative difference: 1.098867e-06" [33] "Component “SWAMATRIC_Lyr_2”: Mean relative difference: 1.617156e-06" [34] "Component “SWAMATRIC_Lyr_3”: Mean relative difference: 1.246417e-06" [35] "Component “SWAMATRIC_Lyr_4”: Mean relative difference: 1.463519e-06" [36] "Component “SWAMATRIC_Lyr_5”: Mean relative difference: 2.28515e-06" [37] "Component “SWAMATRIC_Lyr_6”: Mean relative difference: 9.418853e-07" [38] "Component “SWAMATRIC_Lyr_7”: Mean relative difference: 1.066312e-06" [39] "Component “SWAMATRIC_Lyr_8”: Mean relative difference: 1.019591e-06" [40] "Component “SWA_swa_tree_Lyr_1”: Mean relative difference: 8.801958e-06" [41] "Component “SWA_swa_tree_Lyr_2”: Mean relative difference: 8.076203e-06" [42] "Component “SWA_swa_tree_Lyr_3”: Mean relative difference: 7.164101e-06" [43] "Component “SWA_swa_tree_Lyr_4”: Mean relative difference: 6.993858e-06" [44] "Component “SWA_swa_tree_Lyr_5”: Mean relative difference: 8.964629e-06" [45] "Component “SWA_swa_tree_Lyr_6”: Mean relative difference: 4.635753e-06" [46] "Component “SWA_swa_tree_Lyr_7”: Mean relative difference: 4.582682e-06" [47] "Component “SWA_swa_tree_Lyr_8”: Mean relative difference: 4.413898e-06" [48] "Component “SWA_swa_shrub_Lyr_1”: Mean relative difference: 3.415307e-06" [49] "Component “SWA_swa_shrub_Lyr_2”: Mean relative difference: 3.578671e-06" [50] "Component “SWA_swa_shrub_Lyr_3”: Mean relative difference: 2.578715e-06" [51] "Component “SWA_swa_shrub_Lyr_4”: Mean relative difference: 3.00194e-06" [52] "Component “SWA_swa_shrub_Lyr_5”: Mean relative difference: 3.484284e-06" [53] "Component “SWA_swa_shrub_Lyr_6”: Mean relative difference: 1.730354e-06" [54] "Component “SWA_swa_shrub_Lyr_7”: Mean relative difference: 1.938897e-06" [55] "Component “SWA_swa_shrub_Lyr_8”: Mean relative difference: 1.955346e-06" [56] "Component “SWA_swa_forbs_Lyr_1”: Mean relative difference: 8.801958e-06" [57] "Component “SWA_swa_forbs_Lyr_2”: Mean relative difference: 8.076203e-06" [58] "Component “SWA_swa_forbs_Lyr_3”: Mean relative difference: 7.164101e-06" [59] "Component “SWA_swa_forbs_Lyr_4”: Mean relative difference: 6.993858e-06" [60] "Component “SWA_swa_forbs_Lyr_5”: Mean relative difference: 8.964629e-06" [61] "Component “SWA_swa_forbs_Lyr_6”: Mean relative difference: 4.635753e-06" [62] "Component “SWA_swa_forbs_Lyr_7”: Mean relative difference: 4.582682e-06" [63] "Component “SWA_swa_forbs_Lyr_8”: Mean relative difference: 4.413898e-06" [64] "Component “SWA_swa_grass_Lyr_1”: Mean relative difference: 3.916315e-06" [65] "Component “SWA_swa_grass_Lyr_2”: Mean relative difference: 4.144338e-06" [66] "Component “SWA_swa_grass_Lyr_3”: Mean relative difference: 2.828872e-06" [67] "Component “SWA_swa_grass_Lyr_4”: Mean relative difference: 3.063181e-06" [68] "Component “SWA_swa_grass_Lyr_5”: Mean relative difference: 3.815531e-06" [69] "Component “SWA_swa_grass_Lyr_6”: Mean relative difference: 1.923957e-06" [70] "Component “SWA_swa_grass_Lyr_7”: Mean relative difference: 1.942265e-06" [71] "Component “SWA_swa_grass_Lyr_8”: Mean relative difference: 1.957688e-06" [72] "Component “SWPMATRIC_Lyr_1”: Mean relative difference: 2.322216e-08" [73] "Component “SWPMATRIC_Lyr_2”: Mean relative difference: 3.304662e-08" [74] "Component “SWPMATRIC_Lyr_3”: Mean relative difference: 4.519526e-08" [75] "Component “SWPMATRIC_Lyr_4”: Mean relative difference: 5.272346e-08" [76] "Component “SWPMATRIC_Lyr_5”: Mean relative difference: 5.199723e-08" [77] "Component “SWPMATRIC_Lyr_6”: Mean relative difference: 5.36183e-08" [78] "Component “SWPMATRIC_Lyr_7”: Mean relative difference: 4.543617e-08" [79] "Component “SWPMATRIC_Lyr_8”: Mean relative difference: 5.453246e-08" [80] "Component “TRANSP_transp_total_Lyr_2”: Mean relative difference: 0.0001091465" [81] "Component “TRANSP_transp_total_Lyr_3”: Mean relative difference: 0.001102536" [82] "Component “TRANSP_transp_total_Lyr_5”: Mean relative difference: 0.0001385425" [83] "Component “TRANSP_transp_total_Lyr_7”: Mean relative difference: 6.674231e-05" [84] "Component “TRANSP_transp_shrub_Lyr_3”: Mean relative difference: 0.001102536" [85] "Component “TRANSP_transp_forbs_Lyr_3”: Mean relative difference: 0.0003895598" [86] "Component “EVAPSOIL_Lyr_1”: Mean relative difference: 2.030828e-05" [87] "Component “EVAPSOIL_Lyr_2”: Mean relative difference: 2.860453e-05" [88] "Component “LYRDRAIN_Lyr_1”: Mean relative difference: 1.562113e-07" [89] "Component “LYRDRAIN_Lyr_3”: Mean relative difference: 4.696835e-08" [90] "Component “LYRDRAIN_Lyr_4”: Mean relative difference: 1.968411e-06" [91] "Component “LYRDRAIN_Lyr_5”: Mean relative difference: 1.046047e-07" [92] "Component “LYRDRAIN_Lyr_6”: Mean relative difference: 4.128741e-08" [93] "Component “HYDRED_total_Lyr_2”: Mean relative difference: 2.929459e-05" [94] "Component “HYDRED_total_Lyr_3”: Mean relative difference: 5.243289e-05" [95] "Component “HYDRED_total_Lyr_4”: Mean relative difference: 0.0001294331" [96] "Component “HYDRED_total_Lyr_5”: Mean relative difference: 0.0001334638" [97] "Component “HYDRED_total_Lyr_7”: Mean relative difference: 0.0002744237" [98] "Component “HYDRED_tree_Lyr_7”: Mean relative difference: 0.0001287333" [99] "Component “HYDRED_shrub_Lyr_2”: Mean relative difference: 4.292582e-05" [100] "Component “HYDRED_shrub_Lyr_4”: Mean relative difference: 0.000355366" [101] "Component “HYDRED_shrub_Lyr_6”: Mean relative difference: 0.0006086427" [102] "Component “HYDRED_forbs_Lyr_2”: Mean relative difference: 0.0005192108" [103] "Component “HYDRED_forbs_Lyr_5”: Mean relative difference: 0.005494505" [104] "Component “HYDRED_grass_Lyr_3”: Mean relative difference: 0.0001518372" [105] "Component “HYDRED_grass_Lyr_8”: Mean relative difference: 0.000413736" [106] "Component “SOILTEMP_Lyr_1_max_C”: Mean relative difference: 5.677091e-08" [107] "Component “SOILTEMP_Lyr_1_min_C”: Mean relative difference: 3.079511e-07" [108] "Component “SOILTEMP_Lyr_1_avg_C”: Mean relative difference: 1.23057e-07" [109] "Component “SOILTEMP_Lyr_2_max_C”: Mean relative difference: 7.236446e-08" [110] "Component “SOILTEMP_Lyr_2_min_C”: Mean relative difference: 2.34404e-07" [111] "Component “SOILTEMP_Lyr_2_avg_C”: Mean relative difference: 1.157913e-07" [112] "Component “SOILTEMP_Lyr_3_max_C”: Mean relative difference: 1.146534e-07" [113] "Component “SOILTEMP_Lyr_3_min_C”: Mean relative difference: 2.17593e-07" [114] "Component “SOILTEMP_Lyr_3_avg_C”: Mean relative difference: 1.407808e-07" [115] "Component “SOILTEMP_Lyr_4_max_C”: Mean relative difference: 1.229199e-07" [116] "Component “SOILTEMP_Lyr_4_min_C”: Mean relative difference: 1.349336e-07" [117] "Component “SOILTEMP_Lyr_4_avg_C”: Mean relative difference: 1.324526e-07" [118] "Component “SOILTEMP_Lyr_5_max_C”: Mean relative difference: 1.473129e-07" [119] "Component “SOILTEMP_Lyr_5_min_C”: Mean relative difference: 1.475681e-07" [120] "Component “SOILTEMP_Lyr_5_avg_C”: Mean relative difference: 1.384248e-07" [121] "Component “SOILTEMP_Lyr_6_max_C”: Mean relative difference: 1.62394e-07" [122] "Component “SOILTEMP_Lyr_6_min_C”: Mean relative difference: 1.608422e-07" [123] "Component “SOILTEMP_Lyr_6_avg_C”: Mean relative difference: 1.550766e-07" [124] "Component “SOILTEMP_Lyr_7_max_C”: Mean relative difference: 1.648383e-07" [125] "Component “SOILTEMP_Lyr_7_min_C”: Mean relative difference: 1.600763e-07" [126] "Component “SOILTEMP_Lyr_7_avg_C”: Mean relative difference: 1.601399e-07" [127] "Component “SOILTEMP_Lyr_8_max_C”: Mean relative difference: 1.654345e-07" [128] "Component “SOILTEMP_Lyr_8_min_C”: Mean relative difference: 1.691749e-07" [129] "Component “SOILTEMP_Lyr_8_avg_C”: Mean relative difference: 1.662441e-07"
- Loading branch information