Debian Codegraph @

07p/cmds/@fc

raw symbols SCIP
1 #!/bin/sh
2 echo " "
3 if test -f $1.f -o ! -f $1.c; then
4 echo "(Required files : $1.f, c.$1, $1.dat)"
5 else
6 echo "(Required files : $1.c, c.$1, $1.dat)"
7 fi
8 echo " "
9 if ( test "$OS" = "Windows_NT" && echo "$AUTO_DIR" | grep " " ) then
10 if command -v cygpath > /dev/null; then
11 # use short file name for AUTO_DIR with spaces
12 AUTO_DIR=$(cygpath -u $(cygpath -s -m "$AUTO_DIR"))
13 fi
14 fi
15 make -f "$AUTO_DIR"/cmds/cmds.make fcon EQUATION_NAME=$1
16 cp c.$1 fort.2
17 cp $1.dat fort.3
18 ./fcon
19 mv fort.8 s.dat
20 rm fcon* fort.2 fort.3
21 echo " "
22 echo "Conversion done : converted file saved as s.dat"