Commit 434bd43e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts

ekman

parent 60153df8
Pipeline #2431 failed with stage
in 36 minutes and 29 seconds
......@@ -54,12 +54,12 @@ equations.set_linear_density('z_coordinate', 0, 0)
equations.set_coriolis(('coriolis.nc','f'))
equations.set_vertical_viscosity(mode="constant", constant_value=nu)
equations.set_horizontal_viscosity(mode="smagorinsky")
#equations.set_horizontal_viscosity(mode="constant",constant=0)
#equations.set_horizontal_viscosity(mode="smagorinsky")
equations.set_horizontal_viscosity(mode="constant",constant=0)
time_loop = slim3d.Loop(equations,
time_step=400,
export_time_step=3600,
time_step=10,
export_time_step=600,
final_time=200*24*3600,
output_directory='output')
......@@ -156,7 +156,7 @@ while time_loop.get_time() < time_loop.final_time:
time_loop.print_iter_info()
time_loop.export_fields()
inew = compute_vorticity(iout)
if abs(iold-inew) < abs(inew)/1000 :
if abs(iold-inew) < abs(inew)/5000 or abs(iold-inew)<1e-6:
break
iold = inew
iout += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment