Page 1 of 1

bbm.F compiling error using GFORTRAN

Posted: Thu Aug 20, 2015 4:09 pm
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.

Re: bbm.F compiling error using GFORTRAN

Posted: Thu Aug 20, 2015 4:40 pm
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.