@@ -39,16 +39,16 @@ def freeze_singular_body(
3939 if attributes .freezing_temperature [i ] == 0 :
4040 continue
4141 if thaw and frozen_and_above_freezing_point (
42- attributes .water_mass [i ], temperature [cell [i ]]
42+ attributes .signed_water_mass [i ], temperature [cell [i ]]
4343 ):
44- _thaw (attributes .water_mass , i )
44+ _thaw (attributes .signed_water_mass , i )
4545 elif (
4646 unfrozen_and_saturated (
47- attributes .water_mass [i ], relative_humidity [cell [i ]]
47+ attributes .signed_water_mass [i ], relative_humidity [cell [i ]]
4848 )
4949 and temperature [cell [i ]] <= attributes .freezing_temperature [i ]
5050 ):
51- _freeze (attributes .water_mass , i )
51+ _freeze (attributes .signed_water_mass , i )
5252
5353 self .freeze_singular_body = freeze_singular_body
5454
@@ -68,17 +68,17 @@ def freeze_time_dependent_body( # pylint: disable=unused-argument,too-many-argu
6868 freezing_temperature ,
6969 thaw ,
7070 ):
71- n_sd = len (attributes .water_mass )
71+ n_sd = len (attributes .signed_water_mass )
7272 for i in numba .prange (n_sd ): # pylint: disable=not-an-iterable
7373 if attributes .immersed_surface_area [i ] == 0 :
7474 continue
7575 cell_id = cell [i ]
7676 if thaw and frozen_and_above_freezing_point (
77- attributes .water_mass [i ], temperature [cell_id ]
77+ attributes .signed_water_mass [i ], temperature [cell_id ]
7878 ):
79- _thaw (attributes .water_mass , i )
79+ _thaw (attributes .signed_water_mass , i )
8080 elif unfrozen_and_saturated (
81- attributes .water_mass [i ], relative_humidity [cell_id ]
81+ attributes .signed_water_mass [i ], relative_humidity [cell_id ]
8282 ):
8383 rate_assuming_constant_temperature_within_dt = (
8484 j_het (a_w_ice [cell_id ]) * attributes .immersed_surface_area [i ]
@@ -87,7 +87,7 @@ def freeze_time_dependent_body( # pylint: disable=unused-argument,too-many-argu
8787 r = rate_assuming_constant_temperature_within_dt , dt = timestep
8888 )
8989 if rand [i ] < prob :
90- _freeze (attributes .water_mass , i )
90+ _freeze (attributes .signed_water_mass , i )
9191 # if record_freezing_temperature:
9292 # freezing_temperature[i] = temperature[cell_id]
9393
@@ -99,7 +99,7 @@ def freeze_singular(
9999 self .freeze_singular_body (
100100 SingularAttributes (
101101 freezing_temperature = attributes .freezing_temperature .data ,
102- water_mass = attributes .water_mass .data ,
102+ signed_water_mass = attributes .signed_water_mass .data ,
103103 ),
104104 temperature .data ,
105105 relative_humidity .data ,
@@ -125,7 +125,7 @@ def freeze_time_dependent(
125125 rand .data ,
126126 TimeDependentAttributes (
127127 immersed_surface_area = attributes .immersed_surface_area .data ,
128- water_mass = attributes .water_mass .data ,
128+ signed_water_mass = attributes .signed_water_mass .data ,
129129 ),
130130 timestep ,
131131 cell .data ,
0 commit comments