Build Error in abinit 7.6.3 and 7.6.4
Posted: Mon May 05, 2014 1:10 pm
Hi!
While compiling abinit with gfortran 4.9.0, I noticed, that a bug in the file src/67_common/odamix.F90 blocks further compilation.
The full error message is:
The complete erroneous line is:
The problem here is, that an array with dimension 2x1 should be stored in an array with dimension 3x1.
Could you tell us, how to fix this line?
PS: I "fixed" this by removing the "+1" from the upper boundary of rhoijtmp, which should resemble the behaviour of older compilers. Nevertheless, I don't know, if this is correct.
While compiling abinit with gfortran 4.9.0, I noticed, that a bug in the file src/67_common/odamix.F90 blocks further compilation.
The full error message is:
Code: Select all
mpifort -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/home/stefan/Build/abinit-7.6.3/fallbacks/exports/include -ffree-form -J/home/stefan/Build/abinit-7.6.3/src/mods -O2 -march=native -mtune=native -ffree-line-length-none -g -ffree-line-length-none -c -o outwf.o outwf.F90
odamix.F90:549.13:
rhoijtmp(klmn-1:klmn+1,ispden)=pawrhoij(iatom)%rhoijp(jrhoij:jrhoi
1
Fehler: andere Form für Feld-Zuweisung bei (1) für Dimension 1 (3 und 2)
Makefile:1020: recipe for target 'odamix.o' failed
The complete erroneous line is:
Code: Select all
rhoijtmp(klmn-1:klmn+1,ispden)=pawrhoij(iatom)%rhoijp(jrhoij:jrhoij+1,ispden)
The problem here is, that an array with dimension 2x1 should be stored in an array with dimension 3x1.
Could you tell us, how to fix this line?
PS: I "fixed" this by removing the "+1" from the upper boundary of rhoijtmp, which should resemble the behaviour of older compilers. Nevertheless, I don't know, if this is correct.