Path: utzoo!attcan!uunet!mcsun!ukc!keele!phd11 From: phd11@.uk.ac.keele (Zipzoid) Newsgroups: comp.lang.fortran Subject: Dimensioning arrays at run-time, best way? Message-ID: <614@keele.keele.ac.uk> Date: 12 Sep 90 10:09:53 GMT Sender: news@seq1.keele.ac.uk Organization: University of Keele, Keele, STAFFS. ST5 5BG Lines: 20 Hi, I think this question may have been asked many times before, but what is the best way of dimensioning an array whose maximum memory requirement (size) would be read in at run-time? At the moment I am stating the maximum size that the program is ever likely to encounter in a PARAMETER statement and using this in COMMON blocks duplicated throughout my source file. As you can imagine, the memory wasted when the data file calls for a small problem to be solved is considerable, and I am loathe to recompile the program for varying problem sizes. Any pointers would be gratefully received. -- Tony McDonald (Tones) JANET: phd11@uk.ac.kl.seq1 ~ * ARPANET: phd11@seq1.kl.ac.uk \_/ BITNET: phd11%uk.ac.kl.seq1@ukacrl