#!/bin/bash # cp npbparams_B.h npbparams.h # gfortran -c -g bt_serial.f >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling bt_serial.f" exit fi rm compiler.txt # gcc -c wtime.c >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling wtime.c" exit fi rm compiler.txt # gfortran bt_serial.o wtime.o if [ $? -ne 0 ]; then echo "Errors linking and loading bt_serial.o + wtime.o" exit fi rm bt_serial.o rm wtime.o rm npbparams.h # chmod ugo+x a.out mv a.out ~/binf77/$ARCH/bt_serial_B # echo "Executable installed as ~/binf77/$ARCH/bt_serial_B"