GCC-gfortran: bug in xml.F ?

Problems running VASP: crashes, internal errors, "wrong" results.

Moderators: Global Moderator, Moderator

Post Reply
Message
Author
lahaye
Jr. Member
Jr. Member
Posts: 98
Joined: Fri Apr 14, 2006 5:08 am
Location: Suwon - Korea

GCC-gfortran: bug in xml.F ?

#1 Post by lahaye » Sun Oct 01, 2006 2:38 am

Hi,

In xml.F / xml.f / xml/f90 , there is this code snippet:

Code: Select all

       SUBROUTINE XML_TAG( tag, name, type, param, comment )
          IMPLICIT NONE
          CHARACTER (LEN=*) :: tag
          CHARACTER (LEN=*),OPTIONAL :: name
          CHARACTER (LEN=*),OPTIONAL :: type
          CHARACTER (LEN=*),OPTIONAL :: param
          CHARACTER (LEN=*),OPTIONAL :: comment
The 'tag' parameter is NOT optional and thus it is always required.
However, in xml.f , xml_writer.f , electron.f and main.f there
are lines like this:

CALL XML_CLOSE_TAG

which is wrong, I suppose. At least the gfortran compiler (4.1.2)
chokes on this and I solved this issue by replacing all occurences
of 'empty' calls of
CALL XML_CLOSE_TAG
by
CALL XML_CLOSE_TAG("")

And then gfortran compiles vasp like a charm!

Rob.
Last edited by lahaye on Sun Oct 01, 2006 2:38 am, edited 1 time in total.

lahaye
Jr. Member
Jr. Member
Posts: 98
Joined: Fri Apr 14, 2006 5:08 am
Location: Suwon - Korea

GCC-gfortran: bug in xml.F ?

#2 Post by lahaye » Sun Oct 01, 2006 6:31 am

Please ignore above message.
It appears to be a bug in GCC-gfortran, and not in the vasp code.

Rob.
Last edited by lahaye on Sun Oct 01, 2006 6:31 am, edited 1 time in total.

admin
Administrator
Administrator
Posts: 2922
Joined: Tue Aug 03, 2004 8:18 am
License Nr.: 458

GCC-gfortran: bug in xml.F ?

#3 Post by admin » Tue Oct 03, 2006 8:40 am

you are right, this is a gfortran bug...
Last edited by admin on Tue Oct 03, 2006 8:40 am, edited 1 time in total.

Post Reply