Skip to content

Commit

Permalink
oil: test k0y constant
Browse files Browse the repository at this point in the history
  • Loading branch information
gauteh committed Nov 7, 2023
1 parent 6200ef3 commit 42c6938
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/models/openoil/test_adios_oil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import pytest
import numpy as np
from opendrift.models.openoil import adios
from opendrift.models.openoil import OpenOil


@pytest.fixture
Expand Down Expand Up @@ -77,3 +78,14 @@ def test_vapor_pressure(aasgard):

# np.testing.assert_array_almost_equal(old_vp, new_vp)

def test_k0y_const():
o = OpenOil()
for oil in o.oiltypes:
print('testing oil:', oil)
oils = adios.oils(1, oil)
if len(oils) > 0:
f = oils[0].make_full()
if hasattr(f, 'gnome_oil'):
print(f.k0y)
assert f.k0y == 2.024e-06

0 comments on commit 42c6938

Please sign in to comment.