Skip to content

Commit 73670d0

Browse files
committed
Removed unnecessary dynamic calculation of water density in OpenBerg, constant e.g. 1027 is more than accurate enough for the purpose
1 parent f59566e commit 73670d0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

opendrift/models/openberg.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from opendrift.elements import LagrangianArray
2929
from opendrift.models.basemodel import OpenDriftSimulation
3030
from opendrift.config import CONFIG_LEVEL_BASIC, CONFIG_LEVEL_ESSENTIAL
31-
from opendrift.models.physics_methods import PhysicsMethods
3231
from scipy.integrate import solve_ivp
3332
import numpy as np
3433

@@ -438,7 +437,6 @@ def advect_iceberg(self):
438437

439438
T = self.environment.sea_water_temperature
440439
S = self.environment.sea_water_salinity
441-
rho_water = PhysicsMethods.sea_water_density(T, S)
442440
sea_slope_x = self.environment.sea_surface_x_slope
443441
sea_slope_y = self.environment.sea_surface_y_slope
444442
sea_surface_height= self.environment.sea_surface_height
@@ -586,7 +584,6 @@ def roll_over(self):
586584
return
587585
T = self.environment.sea_water_temperature
588586
S = self.environment.sea_water_salinity
589-
rho_water = PhysicsMethods.sea_water_density(T, S)
590587
L = self.elements.length
591588
W = self.elements.width
592589
H = self.elements.draft + self.elements.sail

0 commit comments

Comments
 (0)