#!/bin/bash for i in pipe-linearize/analytical.ppl pipe-linearize/convergence-1.dat pipe-linearize/convergence-2.dat; do if [ ! -e $i ]; then echo "error: no results found, please read README fist" exit 1 fi done for i in pipe-linearize/pipe-mesh-1-1.png ur.pdf; do if [ ! -e $i ]; then echo "error: results found but no figures available, please read README fist" exit 1 fi done # copy the figures to . cp pipe-linearize/*.pdf pipe-linearize/*.png . # create the distorted mesh figures gmsh distorted.geo -order 1; mv distorted.png distorted1.png gmsh distorted.geo -order 2; mv distorted.png distorted2.png montage -mode concatenate -tile 2x1 distorted1.png distorted2.png distorted.png convert -trim distorted.png distorted.png # convert pdfs to svg for i in M_*.pdf MB_*.pdf ur.pdf *-vs-n.pdf sigma*.pdf error*.pdf; do pdf2svg $i `basename $i .pdf`.svg done