Sorry to bombard with questions but the help so far has been amazing!
So, I have my program (stelcor) that is in old Fortran and begins with…
SUBROUTINE STELCOR(CorM,CorR,CorL,Fmass,Timod,iprint)
My other program calls this file, simply by…
call stelcor(CorM, CorR, CorL, fluxM, time, iprint)
I am migrating to F90.
So, I have my head around the idea of having…
program main
end program
But do I ignore this and keep to having the whole thing set up as a collection of subroutines (with stelcor
being the main subroutine)?
Equally, does the call
statement tell the compiler to look at local f90 files for that subroutine or does the makefile system I have with the original resolve all of this?
Sorry, truly trying to get my head around this; and it is working - with much help from this forum!