Skip to Content.
Sympa Menu

forum - [abinit-forum] Re: can you do me a favor about DP installation?

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

[abinit-forum] Re: can you do me a favor about DP installation?


Chronological Thread 
  • From: Alain Jacques <ajs.jacques@gmail.com>
  • To: 文沈 <wshen02@gmail.com>
  • Cc: forum@abinit.org
  • Subject: [abinit-forum] Re: can you do me a favor about DP installation?
  • Date: Tue, 28 Apr 2009 20:11:44 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=Xm/J5FThrvPQ+g1VuW4RE/acqRfg+3xkk69XiIsDkvj4D3+K7s72swTYeOI3BGWrmq a/N5FFS4v8/QLkDDvNtub+UeXydy0lZDSqzt/C67tPf70o4vgMBujE0v2w146Ram9Cea Vqei/FiGrpB/8D70xDmnxxiNgJm3wTuPkreOw=

Hello again Wen,

I am not convinced you followed the full recipe :-) So did you - in this order - ...

1) make from a clean and configured dp-5.1.3 (with --enable-fftw=fftw3) ... make stops on the reported error
2) copy your /usr/local/include/fftw3.f to /home/wenshen/Desktop/dp-5.1.3/src/
3) edit the ifftw.f90 to replace include FFTWINCLUDEDIR  by include "fftw3.f" ... nothing else!
4) make

Any improvement?

Kind regards,

Alain




文沈 wrote:
Hi, Alain,

I edited ifftw.f90 and make the following change,
include "/home/wenshen/Desktop/dp-5.1.3/src/fftw3.f"

then I run the configure again and then make,
it gives the same error, the only difference is
Error: Can't open included file '/home/wenshen/Desktop/dp-5.1.3/src/fftw3.f'
since I changed the include directory.

Any more idea about this?


Thank you for your help

Wen
On Tue, Apr 28, 2009 at 12:38 AM, Alain Jacques <ajs.jacques@gmail.com> wrote:
Hello Wen,

I remember I had to tweak the code to have it working. It was a long
time ago - almost a year. If I remember well, I worked around this bug
(probably a gfortran problem) by copying my /usr/include/fftw3.f (yours
is maybe somewhere else) to DP src directory and by changing the include
FFTWINCLUDEDIR line to include "fftw3.f" in ifftw.f90 file. So, when the
compilation stops due to the error, apply the 2 modifications, go on
with the make and the corresponding library should be built. Tell me if
it works.

Kind regards,


Alain




文沈 wrote:
> Dear Alain,
> I think you are the only guy who successfully installed DP with
> gfortran, can I ask how you did this?
> I reinstall everything by using gfortran as the complier, but I still
> get errors about fftw like following when I do the make.
> gcc -g -O2 -c -o dp_i686-pc-linux-gnu.o bubu_tmp.c
> /lib/cpp -C  -DVERSION='"5.1.3"' -DBUILT='"27 Apr 2009"' -P
> -DFFTWINCLUDEDIR='"/usr/local/include/fftw3.f"' ifftw.f90 > ifftw_tmp.f90
> gfortran   -c -o ifftw.o ifftw_tmp.f90
> Error: Can't open included file '/usr/local/include/fftw3.f'
>  In file ifftw_tmp.f90:53
>
>       call dfftw_plan_dft_3d(plan,nl,nm,nn,b,b,FFTW_FORWARD,FFTW_MEASURE)
>                                                           1
> Error: Symbol 'fftw_forward' at (1) has no IMPLICIT type
>  In file ifftw_tmp.f90:51
>
>       call dfftw_plan_dft_3d(plan,nl,nm,nn,b,b,FFTW_BACKWARD,FFTW_MEASURE)
>                                                            1
> Error: Symbol 'fftw_backward' at (1) has no IMPLICIT type
>  In file ifftw_tmp.f90:51
>
>       call dfftw_plan_dft_3d(plan,nl,nm,nn,b,b,FFTW_BACKWARD,FFTW_MEASURE)
>                                                                         1
> Error: Symbol 'fftw_measure' at (1) has no IMPLICIT type
> make[1]: *** [ifftw.o] Error 1
> make[1]: Leaving directory `/home/wenshen/Desktop/dp-5.1.3/src'
> make: *** [all] Error 2
>
>
>
> I myself really feel bad about this since I reinstalled fftw several
> times and for the information above I use gfortran to compile fftw.
>
>
> I appreciate any of your suggestions.
>
> Thanks
> Wen






Archive powered by MHonArc 2.6.15.

Top of Page