INCLUDE file
From: Luca Pignagnoli (lucapignaonline_at_libero.it)
Date: 02/26/04
- Next message: Arjen Markus: "Re: INCLUDE file"
- Previous message: Charles Russell: "Re: buggy code or buggy compiler?"
- Next in thread: Arjen Markus: "Re: INCLUDE file"
- Reply: Arjen Markus: "Re: INCLUDE file"
- Reply: Les: "Re: INCLUDE file"
- Reply: Dan Tex1: "Re: INCLUDE file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Feb 2004 05:25:54 -0800
I am an italian researcher on mathematical model of water waves-ice
interaction.
I need to perform a numerical simulation with Fortran 77, but I am an
"absolute beginner" with this language.
My question is how to split a very big Fortran code into subprogram
and to call them by the main program.
In order to solve this problem I have tried to compile and run the
following very simple code:
MAIN PROGRAM:
program A
implicit none
include "B.f"
call HELLO()
stop
end
FILE B.f:
subroutine HELLO ()
write (*,*) 'HELLO WORLD !!!'
return
end
The compiler send me the following error message:
B.f : missing END statement inserted prior to statement.
How can I solve the problem ?
Bye,
Luca
- Next message: Arjen Markus: "Re: INCLUDE file"
- Previous message: Charles Russell: "Re: buggy code or buggy compiler?"
- Next in thread: Arjen Markus: "Re: INCLUDE file"
- Reply: Arjen Markus: "Re: INCLUDE file"
- Reply: Les: "Re: INCLUDE file"
- Reply: Dan Tex1: "Re: INCLUDE file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|