/usr/share/doc/freefem++/examples/examples-bamg/square/dotest is in freefem++-doc 3.19.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | rm -f *[0s].mesh
g=
quad=
if [ "$1" = "-g" ] ;then g=-g;shift; fi
if [ "$1" = "-q" ] ;then quad="-2q -coef 2 -thetaquad 10" ;shift; fi
if [ "$1" = "-g" ] ;then g=-g;shift; fi
if [ -z "$bamg" -o ! -x "$bamg" ] ;then bamg=../../bamg$g; fi
echo " to close the graphic enter f on graphic window until they exist "
echo "Mesh square "
echo ${bamg} -g square_g.mesh -o square_0.mesh $quad
${bamg} -g square_g.mesh -o square_0.mesh $quad
if [ $? -ne 0 -o ! -s square_0.mesh ] ; then echo "the file square_0.mesh is empty or d'ont exist";exit 1 ; fi
echo ${bamg} -g square_g.mesh -o square_0.mesh $quad
${bamg} -splitpbedge -g square_g.mesh -o square_s.mesh $quad
if [ $? -ne 0 -o ! -s square_0.mesh ] ; then echo "the file square_s.mesh is empty or d'ont exist";exit 1 ; fi
echo "Mesh circle "
${bamg} -g circle_g.mesh -o circle_0.mesh $quad
if [ $? -ne 0 -o ! -s circle_0.mesh ] ; then echo "the file circle_0.mesh is empty or d'ont exist";exit 1 ; fi
echo "Mesh a octogone "
${bamg} -g octogone_g.mesh -o octogone_0.mesh $quad
if [ ! -s octogone_0.mesh ] ; then echo "the file octogone_0.mesh is empty or d'ont exist";exit 1 ; fi
echo "Mesh a square with raff "
${bamg} -g square_raf_g.mesh -o square_raf_0.mesh $quad
if [ $? -ne 0 -o ! -s square_raf_0.mesh ] ; then echo "the file square_raf_0.mesh is empty or d'ont exist";exit 1 ; fi
echo "Mesh a square with raff split pb edge"
${bamg} -splitpbedge -g square_raf_g.mesh -o square_raf_s.mesh $quad
if [ $? -ne 0 -o ! -s square_raf_0.mesh ] ; then echo "the file square_raf_0.mesh is empty or d'ont exist";exit 1 ; fi
echo "Mesh a square with anisotropique mesh "
${bamg} -g square_raf_g.mesh -o square_raf_ani_0.mesh -M square_raf_ani_g.mtr $quad
if [ $? -ne 0 -o ! -s square_raf_ani_0.mesh ] ; then echo "the file square_raf_ani_0.mesh is empty or d'ont exist";exit 1 ; fi
echo "Mesh a square with anisotropique mesh with -splitpbedge "
${bamg} -splitpbedge -g square_raf_g.mesh -o square_raf_ani_s.mesh -M square_raf_ani_g.mtr $quad
if [ $? -ne 0 -o ! -s square_raf_ani_s.mesh ] ; then echo "the file square_raf_ani_s.mesh is empty or d'ont exist";exit 1 ; fi
${bamg} -splitpbedge -g l_g.mesh -o l_0.mesh $quad
if [ $? -ne 0 -o ! -s l_0.mesh ] ; then echo "the file l_0.mesh is empty or d'ont exist";exit 1 ; fi
|