slight changes to get_full_matrix.sh
slight changes to run_petscinv