#!/bin/bash # gfortran -c -g toms526_prb.f >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling toms526_prb.f" exit fi rm compiler.txt # gfortran toms526_prb.o -L$HOME/libf77/$ARCH -ltoms526 if [ $? -ne 0 ]; then echo "Errors linking and loading toms526_prb.o" exit fi rm toms526_prb.o # mv a.out toms526_prb ./toms526_prb > toms526_prb_output.txt if [ $? -ne 0 ]; then echo "Errors running toms526_prb" exit fi rm toms526_prb # echo "Test results written to toms526_prb_output.txt."