fortran very annoying errors

11-06-2003, 11:11 AM
I have a pretty simple optimization program, but I get
very annoying errors that I cannot explain.

I declare variables as follows:

Double Precision D1(NMAX1,NMAX1),D2(NMAX2,NMAX2)

Of course all the mentioned parameters are declared. My
program does not work properly if I leave my declaration like this,
but if I write :

Double Precision D2(NMAX2,NMAX2),D1(NMAX1,NMAX1)

then it DOES work, HOW CAN THAT BE ??!?!?!?
By changing the order nothing really changes.
Since my program gets bigger, I need to declare more variables
and I am in big trouble cause I don't know how to declare
the variables so it runs properly. Does anybody know, why
this happens ?

03-11-2004, 12:31 PM
I have had a similar problem with a well-known C++ compiler. Not sure how you solve the problem permanently, but could you try to declaire one variable on each separate line and see if you still have the same problem. My problem with the C++ compiler went away doing this.

09-24-2004, 01:17 AM
What compiler are you using ? Does the compiler return any type
of "COMPILER ERROR" mesaage ?