Dear all, I experience a problem during the compilation of a specific piece of code. I compiled the program on a CRAY XT4 machine using PGI 8.0.6, 9.0.4 and also 10.0.0. But the problem always persists.
This is the error
cpp -P -traditional -D__PGI -D__MPI -D__PARA -D__SCALAPACK -D__ACML -D__WALLTIME -I…/include pw2casino_write.f90 -o pw2casino_write.F90
ftn -fastsse -r8 -D__PGI -D__MPI -D__PARA -D__SCALAPACK -D__ACML -D__WALLTIME -I…/include -I…/iotk/src -I…/Modules -I…/EE -I…/PW -I. -c pw2casino_write.F90 -o pw2casino_write.o
/opt/cray/xt-asyncpe/3.6/bin/ftn: INFO: linux target is being used
PGF90-S-0034-Syntax error at or near identifier to_c80 (pw2casino_write.F90: 635)
PGF90/x86-64 Linux 10.0-0: compilation completed with severe errors
make: *** [pw2casino_write.o] Error 2
This is the (piece of) code
IF(binwrite)THEN
WRITE(iob)&
to_c80(title) ,& ! title
to_c80("PWSCF") ,& ! code
to_c80("DFT") ,& ! method
to_c80("unknown"),& ! functional
to_c80("unknown"),& ! pseudo_type
dble(ecutwfc/2) ,& ! plane_wave_cutoff
lsda ,& ! spin_polarized,
dble(etot/e2) ,& ! total_energy
dble(ek/e2) ,& ! kinetic_energy
dble(eloc/e2) ,& ! local_potential_energy
dble(enl/e2) ,& ! non_local_potential_energy
dble(ehart/e2) ,& ! electron_electron_energy
dble(ewld/e2) ,& ! eionion
nint(nelec) ,& ! num_electrons
nat ,& ! nbasis
ngtot_g ,& ! nwvec
nk ,& ! nkvec
blipgrid(1:3) ,& ! nr
nbnd ,& ! maxband
blipreal/=0 ,& ! gamma_only
.true. ,& ! ext_orbs_present
(/0,0/) ,& ! no_loc_orbs
alat*at(1:3,1) ,& ! pa1
alat*at(1:3,2) ,& ! pa2
alat*at(1:3,3) ,& ! pa3
2 ,& ! nspin_check
nbnd ! num_nonloc_max
The row number is
WRITE(iob)&
So, what’s wrong?
Many thanks in advance!