You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
894B

  1. #!/bin/bash
  2. for i in pipe-linearize/analytical.ppl pipe-linearize/convergence-1.dat pipe-linearize/convergence-2.dat; do
  3. if [ ! -e $i ]; then
  4. echo "error: no results found, please read README fist"
  5. exit 1
  6. fi
  7. done
  8. for i in pipe-linearize/pipe-mesh-1-1.png ur.pdf; do
  9. if [ ! -e $i ]; then
  10. echo "error: results found but no figures available, please read README fist"
  11. exit 1
  12. fi
  13. done
  14. # copy the figures to .
  15. cp pipe-linearize/*.pdf pipe-linearize/*.png .
  16. # create the distorted mesh figures
  17. gmsh distorted.geo -order 1; mv distorted.png distorted1.png
  18. gmsh distorted.geo -order 2; mv distorted.png distorted2.png
  19. montage -mode concatenate -tile 2x1 distorted1.png distorted2.png distorted.png
  20. convert -trim distorted.png distorted.png
  21. # convert pdfs to svg
  22. for i in M_*.pdf MB_*.pdf ur.pdf *-vs-n.pdf sigma*.pdf error*.pdf; do
  23. pdf2svg $i `basename $i .pdf`.svg
  24. done