From: "W.J. Metzger" <[log in to unmask]> Sent: Tuesday, 29 March 2011 8:17 PM > Thanks for the reply, However it is not an answer to what I intended to > ask. Let me rephrase the question. > > Type declarations, e.g., DoublePrecision d > dimensions, e.g., Dimension d(2) > common, common /c/ d > can appear in any order. But giving a name to a constant, e.g., > Parameter (k=5) > must appear before the first use of the named constant, i.e., > Parameter (k=5, l=2*k) > is fine, but > Parameter (l=2*k, k=5) > is not; > Parameter (k=5) > Dimension d(k) > is fine, but > Dimension d(k) > Parameter (k=5) > is not. Naturally. That's because PARAMETER statement MUST precede statements that rely on values defined in the PARAMETER statement. > I do not understand the logic of this. I was hoping someone would explain > this. It seems to me to be contradictory to the lack of a necessary order > for type, dimension, common, etc. You are mistaken. Order is important and must be observed.