Problem about compliation of vtstcode v2.4 with vasp 5.2.12
Posted: Wed Sep 07, 2011 2:31 am
Recently, I tried to compile the vtstcode 2.4 with vasp 5.2.12. I copied all the *.F files into the vasp source directory, replaced the chain.F file, changed the proper line in main.F file and added the proper .o file into the makefile. The added .F files was compiled successfully, but these errors always occurred:
./preprocess <dynconstr.F | /usr/bin/cpp -P -C -traditional >dynconstr.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGZhalf -DMPI_CHAIN -DMPI_BLOCK=8000 -DRPROMU_DGEMV -DRACCMU_DGEMV
mpiifort -FR -lowercase -assume byterecl -O2 -ip -ftz -c dynconstr.f90
fortcom: Error: dynconstr.f90, line 181: This name does not have a type, and must have an explicit type. [DIR_APP]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='REPLACE')
------------------------------------------------^
fortcom: Error: dynconstr.f90, line 181: A substring must be of type CHARACTER. [DIR_APP]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='REPLACE')
------------------------------------------------^
fortcom: Error: dynconstr.f90, line 181: This name does not have a type, and must have an explicit type. [DIR_LEN]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='REPLACE')
----------------------------------------------------------^
fortcom: Error: dynconstr.f90, line 2181: A substring must be of type CHARACTER. [DIR_APP]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='UNKNOWN',POSITION='APPEND')
------------------------------------------^
compilation aborted for dynconstr.f90 (code 1)
make: *** [dynconstr.o] Error 1
The used makefile can compile vasp code without vtstcode successfully.
./preprocess <dynconstr.F | /usr/bin/cpp -P -C -traditional >dynconstr.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGZhalf -DMPI_CHAIN -DMPI_BLOCK=8000 -DRPROMU_DGEMV -DRACCMU_DGEMV
mpiifort -FR -lowercase -assume byterecl -O2 -ip -ftz -c dynconstr.f90
fortcom: Error: dynconstr.f90, line 181: This name does not have a type, and must have an explicit type. [DIR_APP]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='REPLACE')
------------------------------------------------^
fortcom: Error: dynconstr.f90, line 181: A substring must be of type CHARACTER. [DIR_APP]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='REPLACE')
------------------------------------------------^
fortcom: Error: dynconstr.f90, line 181: This name does not have a type, and must have an explicit type. [DIR_LEN]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='REPLACE')
----------------------------------------------------------^
fortcom: Error: dynconstr.f90, line 2181: A substring must be of type CHARACTER. [DIR_APP]
OPEN(UNIT=g_io%STRUCTINPUT,FILE=DIR_APP(1:DIR_LEN)//'HILLSPOT',STATUS='UNKNOWN',POSITION='APPEND')
------------------------------------------^
compilation aborted for dynconstr.f90 (code 1)
make: *** [dynconstr.o] Error 1
The used makefile can compile vasp code without vtstcode successfully.