Skip to content

Commit

Permalink
Corrections to table 2
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Oct 28, 2024
1 parent d9d94cf commit 98f303f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions demos/slab/run_several.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion dual-problems.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 98f303f

Please sign in to comment.