View previous topic :: View next topic |
Author |
Message |
Buddy
Joined: 22 Dec 2010 Posts: 2
|
Posted: Thu Dec 23, 2010 9:02 am Post subject: Program Call Subroutine |
|
|
Within PROGRAM, how do I CALL a SUBROUTINE that's a new Fortran file in the same folder?
Thank you. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8255 Location: Salford, UK
|
Posted: Thu Dec 23, 2010 11:26 am Post subject: |
|
|
If you are using the Fortran 77 standard then you just make the CALL. You don't need any interface, the linker will sort out everything for you.
If you have Fortran 90 features then you will need an INTERFACE. |
|
Back to top |
|
 |
Buddy
Joined: 22 Dec 2010 Posts: 2
|
Posted: Fri Dec 24, 2010 10:08 am Post subject: |
|
|
It's good now, thank you! |
|
Back to top |
|
 |
|