Page 1 of 1

Error in "make yambo"

Posted: Tue May 13, 2014 4:47 am
by jmmorbec
Hello.

I am trying to install yambo-3.4.1 in a Cray XE6 machine, and I got the following error

>>>[Making bse]<<<
make[1]: Entering directory `/global/u1/j/jnmorbec/yambo-3.4.1/src/bse'
PGF90-S-0038-Symbol, isnan, has not been explicitly declared (K_Haydock.f90)
0 inform, 0 warnings, 1 severes, 0 fatal for k_haydock
make[1]: *** [K_Haydock.o] Error 2
make[1]: Leaving directory `/global/u1/j/jnmorbec/yambo-3.4.1/src/bse'
make: *** [yambo] Error 2


in "make yambo".

Could you help me with this, please? How can I avoid this error?

Thank you!

Re: Error in "make yambo"

Posted: Tue May 13, 2014 8:45 am
by Daniele Varsano
Dear Juliana,
isnan is an intrinsic fortran function, which is supported by the gnu, or intel compiler.
It looks that it is not supported by pgi. You can look here:
http://www.pgroup.com/userforum/viewtop ... 26666dcc16

If you have them available, you can switch to intel or gfortran compiler (suggested).
Otherwise:
try replace the following lines:

Code: Select all

193      if( isnan(Bf(it+1)) ) call error('Bf=NaN likely because some eigenvalue of BSE is negative.')
and

Code: Select all

232      if( isnan(Bf(it+1)) ) call error(' Bf=NaN likely because some eigenvalue of BSE is negative.')
substituting the isnan function with ieee_is_nan, in this case I presume you have to add also:
use ieee_arithmetic

If not working, just comment the two lines above and hope you will not ends up with negative eigenvalues.

Best,
Daniele

Re: Error in "make yambo"

Posted: Tue May 13, 2014 2:46 pm
by jmmorbec
Dear Daniele.

Thank you very much for your help.
It seems to replace isnan with ieee_is_nan worked. At least no error in "make yambo interfaces".

Best wishes,

Juliana