Fortran running error

It seems to me you are completely misunderstanding tho processes of compilation and running.

These lines are suspicious:

gfortran numcbas.f < numcbas_c.data

g77 numcbas.f < numcbas_c.data

There is no reason to redirect a data file to the compiler command. The compiler first has to create an executable program which you then can run with your data. Normally, a file ./a.out is created and you then run it

./a.out < some_data_to_stdin

It is very strange that you get a Segmentation fault from running gfortran without any other error message. Are you sure the commands you show above are exactly what you are running?

Leave a Comment