- From: Paul van Delst <Paul.vanDelst@xxxxxxxx>
- Date: Wed, 27 Jun 2007 12:15:36 -0400
On Jun 27, 8:02 pm, Beliavsky <beliav...@xxxxxxx> wrote:
I have had the idea of declaring these arrays once in the main programThis is the traditional approach -- such arguments are called
itself and passing them everytime.. that way it will be declared only
once..But that would put something totally out of place in the main
program...Hence i would like to know of some other way if it's
workspace arrays. An alternative is MODULE variables, with the PRIVATE
attribute, declared ALLOCATABLE, placed in the module containing the
subroutine that uses them.
right.. but does that alleviate my problem of having to allocate it
every time the module gets called..??
Why not use an initialisation function that allocates all your module variables. Then, all your subsequent application function calls simple reference (what I call) the "shared" data.
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
- Re: SAVE
- From: Ganesh
- Re: SAVE