Skip to content
Snippets Groups Projects
Commit 939215ffc327 authored by calpe's avatar calpe
Browse files

Plots hypo-viscosity only if exists.

parent 00ee607dc160
No related branches found
No related tags found
1 merge request!41Default
......@@ -467,9 +467,6 @@
ax1.plot(t, epsK + epsA, "r", label=r"$\epsilon$", linewidth=2)
ax1.plot(
t, epsK_hypo + epsA_hypo, "g", label=r"$\epsilon_{hypo}$", linewidth=2
)
ax1.plot(
t, epsK_tot + epsA_tot, "k", label=r"$\epsilon_{tot}$", linewidth=2
)
......@@ -480,6 +477,5 @@
ax2.set_ylabel(r"$\epsilon_Z(t)$")
ax2.plot(t, epsZ, "r", linewidth=2)
ax2.plot(t, epsZ_hypo, "g", linewidth=2)
ax2.plot(t, epsZ_tot, "k", linewidth=2)
......@@ -484,5 +480,15 @@
ax2.plot(t, epsZ_tot, "k", linewidth=2)
# If true hypo-viscosity...
if self.sim.params.nu_m4:
ax1.plot(
t, epsK_hypo + epsA_hypo,
color="g",
label=r"$\epsilon_{hypo}$",
linewidth=2
)
ax2.plot(t, epsZ_hypo, "g", linewidth=2)
if self.sim.params.forcing.enable:
PK = dict_results["PK_tot"]
PA = dict_results["PA_tot"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment