Path: utzoo!attcan!uunet!world!decwrl!wuarchive!uwm.edu!psuvax1!husc6!martin From: martin@slsiris.harvard.edu (Mr. Science) Newsgroups: comp.lang.fortran Subject: passing DIMs via COMMON?? Message-ID: Date: 9 Oct 90 15:11:40 GMT Sender: news@husc6.harvard.edu Distribution: comp Organization: Chemistry Dept., Harvard University Lines: 36 Hi... Ive noticed that when I try to specify LUNs or adjustable array parameters by passing the value in a common block, f77 doesnt know what to do. For example, I want to specify all "magic numbers" (LUNs, array DIMs...) in the main program section to simplify code maintenance. If I try to pass array dimensions via a common block, the compiler complains about an "adjustable array dimension error"; if I pass these values in the subroutine call, however, the program executes as expected. To simplify the code, I would prefer not passing these values for each subroutine call. Of course, I can solve my problem by putting these parameters in an include file; I was just curious about the difference in passing mechanisms between variables in a common block and variables in a subroutine call. ...pkm Patrick Martin -- .................................................................... Patrick Martin Martin@SLSVAX.Harvard.Edu Martin@SLSIRIS.Harvard.Edu Disclaimer: I get taxed too high to afford an opinion. ....................................................................