Skip to content

Commit

Permalink
finalised scripts for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-chew committed Mar 25, 2024
1 parent 8e73be5 commit d455f70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runs/idealised_delaunay.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def autoreload():

params = var.params()
params.plot = True
params.lmbda_fa = 0.0
params.lmbda_sa = 0.1
params.lmbda_sa = 1e-6
dplot = diagnostics.diag_plotter(params, nhi, nhj)
dplot.show((0, 1), sols, kls=kls_ref, v_extent=v_extent, dfft_plot=True)

Expand Down Expand Up @@ -391,7 +391,7 @@ def autoreload():
v_extent=v_extent,
ir_args=ir_args,
phys_lbls=["", ""],
fn=fn,
fn="",
)
print(uw_01_rc.sum())

Expand All @@ -413,7 +413,7 @@ def autoreload():
v_extent=v_extent,
ir_args=ir_args,
phys_lbls=["", ""],
fn=fn,
fn="",
)
print(uw_02_rc.sum())

Expand Down
4 changes: 4 additions & 0 deletions runs/idealised_isosceles.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def csam_run(cell, n_modes, lmbda_fg, lmbda_sg):

# %%
#### plot the errors
print("amplitudes:")
print(sums)
plotter.error_bar_abs_plot(
selected_errs,
Expand Down Expand Up @@ -302,7 +303,10 @@ def csam_run(cell, n_modes, lmbda_fg, lmbda_sg):
# %%
#### print the errors
np.set_printoptions(suppress=True)
print("percentage error in amplitude:")
print(np.around(sum_errs, 5) * 100)
print("")
print("L2-errors:")
print(errs)

# %%
Expand Down

0 comments on commit d455f70

Please sign in to comment.