@@ -61,6 +61,9 @@ double calc_atmos_energy_bal(double InOverSensible,
61
61
Tcanopy iteration is only performed if CLOSE_ENERGY is TRUE; else
62
62
Tcanopy is set to Tair. Also fixed bug in passing SensibleHeat
63
63
between this function and root_brent, etc. CL via TJB
64
+ 2013-Jan-11 Replaced (*SensibleHeat) with SensibleHeat in argument lists
65
+ of root_brent, error_print_atmos_energy_bal and
66
+ solve_atmos_energy_bal. TJB
64
67
************************************************************************/
65
68
66
69
extern option_struct options ;
@@ -115,7 +118,7 @@ double calc_atmos_energy_bal(double InOverSensible,
115
118
Tcanopy = root_brent (T_lower , T_upper , ErrorString , func_atmos_energy_bal ,
116
119
(* LatentHeat ) + (* LatentHeatSub ),
117
120
NetRadiation , Ra , Tair , atmos_density , InSensible ,
118
- ( * SensibleHeat ) );
121
+ SensibleHeat );
119
122
120
123
if ( Tcanopy <= -998 ) {
121
124
if (options .TFALLBACK ) {
@@ -129,7 +132,7 @@ double calc_atmos_energy_bal(double InOverSensible,
129
132
+ (* LatentHeatSub ),
130
133
NetRadiation , Ra , Tair ,
131
134
atmos_density , InSensible ,
132
- ( * SensibleHeat ) , ErrorString );
135
+ SensibleHeat , ErrorString );
133
136
return ( ERROR );
134
137
}
135
138
}
@@ -143,7 +146,7 @@ double calc_atmos_energy_bal(double InOverSensible,
143
146
// compute variables based on final temperature
144
147
(* Error ) = solve_atmos_energy_bal (Tcanopy , (* LatentHeat ) + (* LatentHeatSub ),
145
148
NetRadiation , Ra , Tair , atmos_density ,
146
- InSensible , ( * SensibleHeat ) );
149
+ InSensible , SensibleHeat );
147
150
148
151
/*****************************
149
152
Find Canopy Vapor Pressure
0 commit comments