From 98f303f46b94ba01b4764fd420ebb78190d4ce26 Mon Sep 17 00:00:00 2001 From: Daniel Shapero Date: Mon, 28 Oct 2024 11:15:20 -0700 Subject: [PATCH] Corrections to table 2 --- demos/slab/run_several.py | 4 ++-- dual-problems.tex | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/slab/run_several.py b/demos/slab/run_several.py index 77ca264..66b2901 100644 --- a/demos/slab/run_several.py +++ b/demos/slab/run_several.py @@ -141,7 +141,7 @@ table_file = open("tables/table_alpha%.2f.txt" % args.alpha, "w") for i in range(len(reg)): if i == 0: - line = "\\multirow{%d}{*}{primal} & " % len(reg) + line = "\\multirow{%d}{*}{Primal} & " % len(reg) else: line = " & " exp = np.log10(reg[i]) @@ -154,7 +154,7 @@ line += " \\\\ \n" table_file.write(line) table_file.write("\\midrule \n") -line = "dual & - " +line = "Dual & - " for j in range(len(k)): line += "& %.2f & %.2f & %d " % (xg[j,-1], hxg[j,-1], its[j,-1]) line += " \\\\ \n" diff --git a/dual-problems.tex b/dual-problems.tex index 238640a..4cd7423 100644 --- a/dual-problems.tex +++ b/dual-problems.tex @@ -568,7 +568,7 @@ \subsection{Comparison with primal form on slab glacier} \label{tab:slab} \begin{tabular}{ccccc} \toprule -solver & $\epsilon\,\mathrm{yr}^{-1}$ & $x_g\,\mathrm{km}$ & $h(x_g)\,\mathrm{m}$ & iterations \\ + Solver & $\epsilon\,(\mathrm{yr}^{-1})$ & $x_g\,(\mathrm{km})$ & $h(x_g)\,(\mathrm{m})$ & Iterations \\ \midrule \input{demos/slab/tables/table_alpha1.00.txt} \end{tabular}