[Pw_forum] Re: Problem with examples

Davide Ceresoli ceresoli at sissa.it
Fri Apr 21 09:53:03 CEST 2006


stewart at cnf.cornell.edu wrote:
> Hi Cesar,
>  Can you post the Make.sys file generated by configure.  This will help 
> determine where the problem is.  I have been able to get the espresso 
> package 3.0 to compile with ifort 9.0 and mkl 8.0 on a xeon box.
> Best regards,
> Derek
Dear all,
     I run into this problem several months ago.
Even though -DFFTW is defined in the make.sys, there is a (documented) bug
in the fortran preprocessor of the 9.0 compiler, at least in some
version of it.

Look at this piece of code PW/cft3s.f90:

#if defined (__FFT_MODULE_DRV) && ( defined __AIX || defined __FFTW )
      !
      CALL cfft3ds( f, n1, n2, n3, nx1, nx2, nx3, 1, dffts%isind, dffts%iplw )
      !
#elif defined (__FFT_MODULE_DRV)
      !
      CALL cfft3d( f, n1, n2, n3, nx1, nx2, nx3, 1 )
      !
#elif defined (NOPENCILS)
      !
      CALL cft_3( f, n1, n2, n3, nx1, nx2, nx3, 2, 1 )
      !
#else
      !
      CALL cfts_3( f, n1, n2, n3, nx1, nx2, nx3, 2, 1, dffts%isind, dffts%iplw )
      !
#endif

It happens that last case (#else) always passes through the fortran
preprocessor (fpp).
Possible solutions:
1) upgrade you compiler
2) substitute /opt/intel/blahblah/bin/fpp with that from version 8.1
3) comment all lines such as CALL cfts_3(...)
HTH.

Davide




More information about the Pw_forum mailing list