#!/bin/bash # g++ -c -g feynman_kac_3d.cpp >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling feynman_kac_3d.cpp" exit fi rm compiler.txt # g++ feynman_kac_3d.o if [ $? -ne 0 ]; then echo "Errors loading feynman_kac_3d.o" exit fi # rm feynman_kac_3d.o mv a.out feynman_kac_3d ./feynman_kac_3d > feynman_kac_3d_output.txt rm feynman_kac_3d # echo "Program output written to feynman_kac_3d_output.txt"