Skip to content

Commit f569f25

Browse files
committed
Replacing integers with floats in the biofouling kernel.
1 parent 0afa892 commit f569f25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plasticparcels/kernels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ def Biofouling(particle, fieldset, time):
271271
initial_settling_velocity = particle.settling_velocity # settling velocity [m s-1]
272272

273273
# Compute the seawater dynamic viscosity and kinematic viscosity
274-
water_dynamic_viscosity = 4.2844E-5 + (1 / ((0.156 * (temperature + 64.993) ** 2) - 91.296)) # Eq. (26) from [2]
274+
water_dynamic_viscosity = 4.2844E-5 + (1. / ((0.156 * (temperature + 64.993) ** 2) - 91.296)) # Eq. (26) from [2]
275275
A = 1.541 + 1.998E-2 * temperature - 9.52E-5 * temperature ** 2 # Eq. (28) from [2]
276276
B = 7.974 - 7.561E-2 * temperature + 4.724E-4 * temperature ** 2 # Eq. (29) from [2]
277-
seawater_dynamic_viscosity = water_dynamic_viscosity * (1 + A * seawater_salinity + B * seawater_salinity ** 2) # Eq. (27) from [2]
277+
seawater_dynamic_viscosity = water_dynamic_viscosity * (1. + A * seawater_salinity + B * seawater_salinity ** 2) # Eq. (27) from [2]
278278
seawater_kinematic_viscosity = seawater_dynamic_viscosity / particle.seawater_density # Eq. (25) from [2]
279279

280280
# Compute the algal growth component

0 commit comments

Comments
 (0)