Commit 964f9e88 authored by Veit Lüschow's avatar Veit Lüschow

added changes to dwbc01

parent 6e2cc096
......@@ -74,6 +74,7 @@ def momentum(vs):
if vs.dwbc2:
utilities.set_obc_momentum(vs)
"""
add momentum restoring that is computed in set_forcing
"""
......
......@@ -56,13 +56,16 @@ def obc_boundaries(vs,arr):
def set_obc_temp_salt(vs):
print('do phase speed stuff')
# temp(:,j,:,taup1) = temp(:,j,:,taup1) + dt_tracer*maskT(:,j,:)*obc_tscl*(temp_wall_north - temp(:,j,:,tau) )
vs.temp[:,2,:,vs.taup1] = vs.temp[:,2,:,vs.taup1] + vs.dt_tracer \
* vs.tscl_tr * ( vs.temp_ini[:,5,:] - vs.temp[:,2,:,vs.tau] )
vs.temp[:,-4,:,vs.taup1] = vs.temp[:,-4,:,vs.taup1] + vs.dt_tracer \
* vs.tscl_tr * ( vs.temp_ini[:,-5,:] - vs.temp[:,-4,:,vs.tau] )
# vs.temp[:,2,:,vs.taup1] = vs.temp_ini[:,5,:].copy()
# vs.temp[:,-4,:,vs.taup1] = vs.temp_ini[:,-5,:].copy()
# vs.temp[:,2,:,vs.taup1] = vs.temp_ini[:,5,:].copy() # WORKS!
# vs.temp[:,-4,:,vs.taup1] = vs.temp_ini[:,-5,:].copy() # WORKS!
print('restore temp and salt')
@veros_method
......
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