bbm.F compiling error using GFORTRAN

Vasp transition state theory tools

Moderator: moderators

Post Reply
olemiss
Posts: 2
Joined: Thu Aug 20, 2015 3:53 pm

bbm.F compiling error using GFORTRAN

Post by olemiss »

The compiling error:
[code]
./preprocess <bbm.F | /usr/bin/cpp -P -traditional >bbm.f90 -DMPI -DHOST=\"LinuxGfortran\" -DCACHE_SIZE=4096 -Davoidalloc -DNGZhalf -DMPI_BLOCK=262144 -Duse_collective -DscaLAPACK -DMINLOOP=1
mpif90 -ffree-form -ffree-line-length-0 -fno-second-underscore -I/opt/include -O3 -c bbm.f90
bbm.f90:357.25:

WRITE(IU6,'(A,9X,<NBAS>I5)') ' Bond-Boost: BALIST',BALIST(:)
1
Error: Unexpected element '<' in format string at (1)
make: *** [bbm.o] Error 1
[/code]

The problem is using '<NBAS>' in the output formatting, which is not supported by GNU Gfortran. How should I change the part without using intel fortran compiler? Thanks.
graeme
Site Admin
Posts: 2260
Joined: Tue Apr 26, 2005 4:25 am
Contact:

Re: bbm.F compiling error using GFORTRAN

Post by graeme »

Ah, we should change that; I see that it is an intel specific format statement.

You can try the following change:

WRITE(IU6,'(A,9X,*(I5))') ' Bond-Boost: BALIST',BALIST(:)

and if that doesn't work, use a large number:

WRITE(IU6,'(A,9X,999I5)') ' Bond-Boost: BALIST',BALIST(:)

or one final version:

WRITE(IU6,*) ' Bond-Boost: BALIST',BALIST(:)

which is fine since the format doesn't really matter as it is to the output.
Post Reply