我正在使用 FORTRAN 来解决偏微分方程。主程序和子程序已放在.f 文件中。我得到了一个 .sh 文件来在 linux 操作系统的源代码中编译命令。此文件已附上。但我没有运行这个。在挣扎了一周之后,我真的需要一些帮助。请任何帮助将不胜感激!!!
#!/bin/bash
#
mkdir temp
cd temp
rm *
~/binc/$ARCH/f77split ../fishpack.f
#
for FILE in `ls -1 *.f`;
do
gfortran -c -g $FILE >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling " $FILE
exit
fi
rm compiler.txt
done
rm *.f
#
ar qc libfishpack.a *.o
rm *.o
#
mv libfishpack.a ~/libf77/$ARCH
cd ..
rmdir temp
#
echo "Library installed as ~/libf77/$ARCH/libfishpack.a."