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