vdwforcefield.F compilation error

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
imcnab
Newbie
Newbie
Posts: 22
Joined: Thu Jul 08, 2010 10:49 pm
License Nr.: 5-531
Location: Toronto, Canada

vdwforcefield.F compilation error

#1 Post by imcnab » Mon Dec 13, 2010 10:53 pm

Dear All,
I cannot compile vdwforcefield.F with IBM mpxlf90 (IBM power6 cluster, called SciNet).

I am building vasp.5.2.11 on SciNet using a Makefile provided by Prof. WA Hofer.

The pre-bug fixed version of 5.2.11 builds and runs
The new version of vdwforcefield.F hits a compiler error as follows:

mpxlf90 -qfree=f90 -qmaxmem=-1 -qarch=auto -qtune=auto -qcache=auto -qinitauto -qcheck -qsave=all -O3 -qarch=auto -qstrict -c vdwforcefield.f
"vdwforcefield.f", line 97.50: 1516-083 (S) All elements in an array constructor must have the same type and type parameters.
** vdwforcefield === End of Compilation 1 ===
1501-511 Compilation failed for file vdwforcefield.f.

changing the optimization level does not help this compile.

All help gratefully received.
best regards... Iain
Last edited by imcnab on Mon Dec 13, 2010 10:53 pm, edited 1 time in total.

alex
Hero Member
Hero Member
Posts: 586
Joined: Tue Nov 16, 2004 2:21 pm
License Nr.: 5-67
Location: Germany

vdwforcefield.F compilation error

#2 Post by alex » Tue Dec 14, 2010 3:09 pm

Maybe the "kind" is not well transferred. Try to add _q to some of your variables in question.

Hth

alex
Last edited by alex on Tue Dec 14, 2010 3:09 pm, edited 1 time in total.

daniele

vdwforcefield.F compilation error

#3 Post by daniele » Tue Dec 14, 2010 3:22 pm

Hi Iain,

the buxfix is just a bug itself :)

I just mailed to vasp developers.

go to line 99 in vdwforcefield.F and change:

... 'In','Sn','Sb','Te','I ','Xe','X'/)

for:

... 'In','Sn','Sb','Te','I ','Xe','X '/)

i.e. just add a space after the "X".

cheers,

Daniele Stradi
Ph.D student
CAMPUS group
Universidad Autonoma de Madrid
Last edited by daniele on Tue Dec 14, 2010 3:22 pm, edited 1 time in total.

daniele

vdwforcefield.F compilation error

#4 Post by daniele » Tue Dec 14, 2010 3:25 pm

uuuppps!

sorry it line 97 in vdwforcefield.F, not 99.

cheers,

Daniele
Last edited by daniele on Tue Dec 14, 2010 3:25 pm, edited 1 time in total.

imcnab
Newbie
Newbie
Posts: 22
Joined: Thu Jul 08, 2010 10:49 pm
License Nr.: 5-531
Location: Toronto, Canada

vdwforcefield.F compilation error

#5 Post by imcnab » Tue Dec 14, 2010 3:35 pm

Dear Daniele,
you are an absolute STAR. Thankyou. My vasp now builds.
best ... Iain
Last edited by imcnab on Tue Dec 14, 2010 3:35 pm, edited 1 time in total.

Post Reply