From: W. Trevor King Date: Mon, 6 May 2013 13:38:15 +0000 (-0400) Subject: sawsim/discussion.tex: Fix minted markup for sawsim snippets X-Git-Tag: v1.0~252 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=697510a2f06df7f978f560dd64de924ce93e5088;p=thesis.git sawsim/discussion.tex: Fix minted markup for sawsim snippets --- diff --git a/src/sawsim/discussion.tex b/src/sawsim/discussion.tex index 9df8ca5..3f04ba2 100644 --- a/src/sawsim/discussion.tex +++ b/src/sawsim/discussion.tex @@ -484,21 +484,21 @@ simulated data over a 50-by-50 grid of $k_{u0}$ and $\Delta x$, you would use something like \begin{minted}[samepage]{console} $ sawsim_hist_scan.py -f '-s cantilever,hooke,0.05 -N1 -s folded,null -N8 - -s "unfolded,wlc,{0.39e-9,28e-9}" -k "folded,unfolded,bell,{%g,x%g}" - -q folded' -r '[1e-5,1e-3,50],[0.1e-9,1e-9,50]' --logx histograms.txt +> -s "unfolded,wlc,{0.39e-9,28e-9}" -k "folded,unfolded,bell,{%g,x%g}" +> -q folded' -r '[1e-5,1e-3,50],[0.1e-9,1e-9,50]' --logx histograms.txt \end{minted} That's a bit of a mouthful, so let's break it down. Without the -\sawsim\ template (\Verb+-f ...+), we can focus on the comparison +\sawsim\ template (\imint{sh}|-f ...|), we can focus on the comparison options: \begin{minted}[samepage]{console} -$ sawsim_hist_scan.py \ldots -r '[1e-5,1e-3,50],[0.1e-9,1e-9,50]' --logx histograms.txt +$ sawsim_hist_scan.py ... -r '[1e-5,1e-3,50],[0.1e-9,1e-9,50]' --logx histograms.txt \end{minted} This sets up a two-parameter sweep, with the first parameter going from $1\E{-5}$ to $1\E{-3}$ in 50 logarithmic steps, and the second going from $0.1\E{-9}$ to $1\E{-9}$ in 50 linear steps. The \sawsim\ template defines the simulation model -(\cref{fig:sawsim:domains,tab:sawsim:model}), and \Verb+%g+ marks the -location where the swept parameters will be inserted. +(\cref{fig:sawsim:domains,tab:sawsim:model}), and \imint{sh}|%g| marks +the location where the swept parameters will be inserted. Behind the scenes, \pysawsim\ is spawning several concurrent \sawsim\ processes to take advantage of any parallel processing