Gareth Pearce
2002-09-29 22:23:04 UTC
Okay, so I have been attempting to test g95 on the CPMD source code - a very
powerful program for simulating small systems of atoms with full quantum
mechanical accuracy, and two issues show up immediately - one the lack of
POINTER type and two a very large number of "assumed size arrray at(?) must
be a dummy argument" errors.
Oddly i reduced a testcase ... and it fails to compile on laheyf95 (with the
dummy argument error)- even though cpmd compiles on laheyf95 just fine...
I think its something to do with POINTER ... but havent had a chance to look
at it properly.
However the reduced testcase is interesting in itself.
$ cat test.f
subroutine blah
INTEGER IATPT
DIMENSION IATPT(2,*)
end
gives
INTEGER IATPT
1
Error: Assumed size array at (1) must be a dummy argument
This kind of error confused me greatly for a while. Surely the error should
point to the use of DIMENSION - instead of the original declaration. Both
lahey and intel fortran point to line 3 as error.
Gareth
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
powerful program for simulating small systems of atoms with full quantum
mechanical accuracy, and two issues show up immediately - one the lack of
POINTER type and two a very large number of "assumed size arrray at(?) must
be a dummy argument" errors.
Oddly i reduced a testcase ... and it fails to compile on laheyf95 (with the
dummy argument error)- even though cpmd compiles on laheyf95 just fine...
I think its something to do with POINTER ... but havent had a chance to look
at it properly.
However the reduced testcase is interesting in itself.
$ cat test.f
subroutine blah
INTEGER IATPT
DIMENSION IATPT(2,*)
end
gives
INTEGER IATPT
1
Error: Assumed size array at (1) must be a dummy argument
This kind of error confused me greatly for a while. Surely the error should
point to the use of DIMENSION - instead of the original declaration. Both
lahey and intel fortran point to line 3 as error.
Gareth
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com