Error while compiling VASP with vtstcode

Vasp transition state theory tools

Moderator: moderators

Post Reply
agalya
Posts: 1
Joined: Mon Jul 28, 2008 2:57 am

Error while compiling VASP with vtstcode

Post by agalya »

Hello,

I followed the steps given in this website to install vtstcode in to my vasp directory and made changes in the Makefile.

http://theory.cm.utexas.edu/vtsttools/code/

But I am getting error during compilation.
Can anyone tell me what is the problem.

Thanks


-bash-2.05b$ make
./preprocess <dimer.F | /usr/bin/cpp -P -C -traditional >dimer.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc -DMPI_BLOCK=2000 -DNBLK_default=64
mpif90 -FR -lowercase -O2 -c dimer.f90
fortcom: Error: dimer.f90, line 151: This module file was generated for a different platform or by an incompatible compiler or compiler release. It cannot be read. [PREC]
USE prec
----------^
fortcom: Error: dimer.f90, line 162: This derived type name has not been declared. [TYPE_INFO]
TYPE(type_info) :: DINFO
-----------^
fortcom: Error: dimer.f90, line 166: A kind type parameter must be a compile-time constant. [Q]
REAL(q),ALLOCATABLE,DIMENSION(:,:) :: N,R,R0,F,F0,F1,F2
-----------^
fortcom: Error: dimer.f90, line 167: A kind type parameter must be a compile-time constant. [Q]
REAL(q),ALLOCATABLE,DIMENSION(:,:) :: Feff,FN,FNold,GN,GNu
-----------^
fortcom: Error: dimer.f90, line 168: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,3) :: A,B
-----------^
fortcom: Error: dimer.f90, line 169: A kind type parameter must be a compile-time constant. [Q]
REAL(q) :: U,U0,CN,Cth,dR,FNMax,FNMin,F0r,FNr
-----------^
fortcom: Error: dimer.f90, line 170: A kind type parameter must be a compile-time constant. [Q]
REAL(q) :: FN1,FN2,GamN,dTh,Th,CN1,FN1r
-----------^
fortcom: Error: dimer.f90, line 180: This derived type name has not been declared. [IN_STRUCT]
TYPE(in_struct) :: IO
-----------^
fortcom: Error: dimer.f90, line 181: This derived type name has not been declared. [TYPE_INFO]
TYPE(type_info) :: T_INFO
-----------^
fortcom: Error: dimer.f90, line 179: This name does not have a type, and must have an explicit type. [T_INFO]
SUBROUTINE Dimer_Init(T_INFO,IO)
--------------------------^
fortcom: Error: dimer.f90, line 179: This name does not have a type, and must have an explicit type. [IO]
SUBROUTINE Dimer_Init(T_INFO,IO)
---------------------------------^
fortcom: Error: dimer.f90, line 219: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,NIONS) :: POSION,TIFOR
-----------^
fortcom: Error: dimer.f90, line 220: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,3) :: LATT_A,LATT_B
-----------^
fortcom: Error: dimer.f90, line 221: A kind type parameter must be a compile-time constant. [Q]
REAL(q) :: TOTEN
-----------^
fortcom: Error: dimer.f90, line 344: A kind type parameter must be a compile-time constant. [Q]
REAL(q),EXTERNAL :: RANG
-----------^
fortcom: Error: dimer.f90, line 409: A kind type parameter must be a compile-time constant. [Q]
REAL(q) a1,a2
-----------^
fortcom: Error: dimer.f90, line 471: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,Nions) :: V
-----------^
fortcom: Error: dimer.f90, line 480: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,Nions) :: V1,V2,V1tmp
-----------^
fortcom: Error: dimer.f90, line 481: A kind type parameter must be a compile-time constant. [Q]
REAL(q) :: tTh,cTh,sTh
-----------^
fortcom: Error: dimer.f90, line 492: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(:,:) :: V
-----------^
fortcom: Error: dimer.f90, line 501: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,Nions) :: V
-----------^
fortcom: Error: dimer.f90, line 502: A kind type parameter must be a compile-time constant. [Q]
REAL(q) Vtmp(3)
-----------^
fortcom: Error: dimer.f90, line 541: A kind type parameter must be a compile-time constant. [Q]
COMPLEX(q) :: CDUM
--------------^
fortcom: Error: dimer.f90, line 543: A kind type parameter must be a compile-time constant. [Q]
REAL(q) :: RDUM
-----------^
fortcom: Error: dimer.f90, line 583: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,3) :: Atmp
-----------^
fortcom: Error: dimer.f90, line 584: A kind type parameter must be a compile-time constant. [Q]
REAL(q),DIMENSION(3,NIONS) :: POSION
-----------^
fortcom: Error: dimer.f90, line 587: A kind type parameter must be a compile-time constant. [Q]
REAL(q) :: SCALE
-----------^
fortcom: Error: dimer.f90, line 191: This name does not have a type, and must have an explicit type. [DINFO]
DINFO = T_INFO
------^
fortcom: Error: dimer.f90, line 192: This is not a field name that is defined in the encompassing structure. [IU0]
IU0 = IO%IU0
---------------^
fortcom: Error: dimer.f90, line 193: This is not a field name that is defined in the encompassing structure. [IU5]
IU5 = IO%IU5
---------------^
fortcom: Severe: Too many errors, exiting
compilation aborted for dimer.f90 (code 1)
make: *** [dimer.o] Error 1
graeme
Site Admin
Posts: 2291
Joined: Tue Apr 26, 2005 4:25 am
Contact:

Re: Error while compiling VASP with vtstcode

Post by graeme »

Try doing a 'make clean' or delete all your .o .mod and .f90 files.
Post Reply