Commit 5e9cd543 authored by Veit Lüschow's avatar Veit Lüschow

few changes

parent b4c1553d
......@@ -4,7 +4,7 @@
#SBATCH -N 1 # Specify number of nodes
#SBATCH -n 1 # Specify max. number of tasks to be invoked
#SBATCH --mem-per-cpu=5300 # Set memory required per allocated CPU
#SBATCH -t 08:00:00 # Set a limit on the total run time
#SBATCH -t 12:00:00 # Set a limit on the total run time
#SBATCH -A mh0256 # Charge resources on this project account
#SBATCH -o my_job.o%j # File name for standard and error output
......
......@@ -2,8 +2,8 @@
#from IPython import get_ipython
#get_ipython().magic('reset -sf')
from side_tools import *
clean()
# from side_tools import *
# clean()
from veros import VerosSetup, veros_method
from veros.tools import cli
......@@ -207,18 +207,7 @@ class DWBC2Setup(VerosSetup):
utilities.obc_boundaries(vs,vs.v[:,:,:,0:2])
utilities.obc_boundaries(vs,tmp)
utilities.obc_boundaries(vs,dzv)
# import matplotlib.pyplot as plt
# plt.plot(t_tmp+ft)
# xx,yy = np.meshgrid(vs.xt,vs.yt,indexing='ij')
# plt.contourf(xx,yy,vs.temp_ini[:,:,15],20)
# plt.contourf(xx,yy,tmp[:,:,10])
# plt.colorbar()
# plt.contour(xx,zz,vs.v_ini[:,10,:],5,colors='black')
# raise SystemExit(0)
"""
......@@ -230,8 +219,18 @@ class DWBC2Setup(VerosSetup):
vs.tscl_tr = 2e-5
vs.t_restoring_tr[:,:,-1] = vs.tscl_tr
vs.t_restoring_tr[:,:,-2] = vs.tscl_tr / 2
vs.t_restoring_tr[:,:,-2:] = vs.tscl_tr
vs.t_restoring_tr[:,:,-3] = vs.tscl_tr / 2.
# import matplotlib.pyplot as plt
# xx,yy = np.meshgrid(vs.xt,vs.yt,indexing='ij')
# plt.contourf(xx,yy,vs.temp_ini[:,:,15],20)
# plt.contourf(xx,yy,tmp[:,:,10])
# plt.pcolormesh(xx,zz,vs.t_restoring_tr[:,10,:])
# plt.colorbar()
# raise SystemExit(0)
@veros_method
def set_forcing(self, vs):
......
......@@ -63,7 +63,7 @@ p = section('dwbc2.snapshot.nc','v')
high=0.2
plt.figure()
p.select(99,'yu',15).plot.contourf(levels=30,cmap='RdBu_r')
p.select(0,'yu',50).plot.contourf(levels=30,cmap='RdBu_r')
#
# plt.colorbar()
......
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