@@ -36,13 +36,13 @@ def test_openberg_constant_forcing():
3636 o .set_config ('environment:constant:y_sea_water_velocity' , 0 )
3737 o .set_config ('environment:constant:x_wind' , 0 )
3838 o .set_config ('environment:constant:y_wind' , 0 )
39- o .set_config ('environment:constant:sea_surface_wave_significant_height' , 3 )
39+ o .set_config ('environment:constant:sea_surface_wave_significant_height' , 2 )
4040 o .set_config ('environment:constant:sea_surface_wave_from_direction' , 270 )
4141 o .set_config ('drift:horizontal_diffusivity' , 0 )
4242 o .set_config ('drift:coriolis' , False )
4343 o .seed_elements (4 , 60 , time = datetime .now ())
4444 o .run (steps = 2 )
45- np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.127 , 3 )
45+ np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.055 , 3 )
4646 np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.0 , 3 )
4747
4848 # No current and wind, waves from east
@@ -57,7 +57,7 @@ def test_openberg_constant_forcing():
5757 o .set_config ('drift:coriolis' , False )
5858 o .seed_elements (4 , 60 , time = datetime .now ())
5959 o .run (steps = 2 )
60- np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 3.873 , 3 )
60+ np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 3.915 , 3 )
6161 np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.0 , 3 )
6262
6363 # Northwards current, no wind, no Coriolis
@@ -96,7 +96,7 @@ def test_openberg_constant_forcing():
9696 o .set_config ('drift:coriolis' , True )
9797 o .seed_elements (4 , 60 , time = datetime .now ())
9898 o .run (steps = 2 )
99- np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.114 , 3 )
99+ np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.083 , 3 )
100100 np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.058 , 3 )
101101
102102 # No current, eastwards wind
@@ -109,7 +109,7 @@ def test_openberg_constant_forcing():
109109 o .set_config ('drift:coriolis' , False )
110110 o .seed_elements (4 , 60 , time = datetime .now ())
111111 o .run (steps = 2 )
112- np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.107 , 3 )
112+ np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.075 , 3 )
113113 np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.000 , 3 )
114114
115115 # No current, weaker eastwards wind
@@ -123,7 +123,7 @@ def test_openberg_constant_forcing():
123123 o .seed_elements (4 , 60 , time = datetime .now ())
124124 o .run (steps = 2 )
125125 # TODO: Half wind gives only 25% of eastwards movement. Should be checked.
126- np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.028 , 3 )
126+ np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4.022 , 3 )
127127 np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.000 , 3 )
128128
129129 # No current, westwards wind
@@ -136,7 +136,7 @@ def test_openberg_constant_forcing():
136136 o .set_config ('drift:coriolis' , False )
137137 o .seed_elements (4 , 60 , time = datetime .now ())
138138 o .run (steps = 2 )
139- np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 3.892 , 3 )
139+ np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 3.924 , 3 )
140140 np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.000 , 3 )
141141
142142 # No current, northwards wind
@@ -150,7 +150,7 @@ def test_openberg_constant_forcing():
150150 o .seed_elements (4 , 60 , time = datetime .now ())
151151 o .run (steps = 2 )
152152 np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4 , 3 )
153- np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.054 , 3 )
153+ np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 60.039 , 3 )
154154
155155 # No current, southwards wind
156156 o = OpenBerg (loglevel = 50 )
@@ -163,7 +163,7 @@ def test_openberg_constant_forcing():
163163 o .seed_elements (4 , 60 , time = datetime .now ())
164164 o .run (steps = 2 )
165165 np .testing .assert_almost_equal (o .result .lon .isel (time = - 1 ), 4 , 3 )
166- np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 59.946 , 3 )
166+ np .testing .assert_almost_equal (o .result .lat .isel (time = - 1 ), 59.962 , 3 )
167167
168168
169169def test_openberg_norkyst ():
0 commit comments