Xref: utzoo comp.lang.fortran:4211 comp.lang.c:34359 Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!hsdndev!cmcl2!lanl!ttw From: ttw@lanl.gov (Tony Warnock) Newsgroups: comp.lang.fortran,comp.lang.c Subject: Re: Fortran vs. C for numerical work (SUMMARY) Message-ID: <7340@lanl.gov> Date: 29 Nov 90 20:44:53 GMT References: <9458:Nov2721:51:5590@kramden.acf.nyu.edu> <2392:Nov2902:59:0590@kramden.acf.nyu.edu> Organization: Los Alamos Natl Lab, Los Alamos, N.M. Lines: 17 In one of the smaller problems that I had to run, I found that I needed two large arrays declared as follows: COMPLEX a(3,3,4,12,12,12,32), b(3,4,12,12,12,32) These are BIG suckers for a small (CRAY-1) machine. Actually the first array was dimensioned as a(3,2,4,12,12,12,32) using a standard trick of the underlying physics. It was necessary to access the arrays letting each of the last four dimensions be the innermost loop. (I used more programming tricks to eliminate memory-bank conflicts.) Every few hundred steps, some of the a's and b's were treated specaially as single 3x3 (realized as 3x2) and 4x3 complex matrices. There is not much room left over for the pointer arrays to get at these matrices.