<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>If you're building fftw3 from source with gfortran and are
following my steps, the fftw3.f03 is installed in the
~/fftw-3.3.10/include directory as seen in step 4 of [1].</p>
<p>If you're using ifort instead of gfortran, fftw3 can also be
built from source and the fftw3.f03 can be installed in the
~/fftw-3.3.10/include directory as seen in step 2 of [2].<br>
</p>
<p>If you are instead using fftw3 from the Ubuntu 22.04.2 LTS
package, which likely only works when using gfortran, the library
header file fftw3.f03 gets installed in the /usr/include/
directory as seen below:<br>
</p>
<p>username@computername:~/Desktop$ lsb_release -a<br>
No LSB modules are available.<br>
Distributor ID: Ubuntu<br>
Description: Ubuntu 22.04.2 LTS<br>
Release: 22.04<br>
Codename: jammy<br>
username@computername:~/Desktop$ ls /usr/include/fftw3*<br>
ls: cannot access '/usr/include/fftw3*': No such file or directory<br>
username@computername:~/Desktop$ sudo apt install libfftw3-dev<br>
...<br>
username@computername:~/Desktop$ ls /usr/include/fftw3*<br>
/usr/include/fftw3.f /usr/include/fftw3.h
/usr/include/fftw3q.f03<br>
/usr/include/fftw3.f03 /usr/include/fftw3l.f03<br>
</p>
<p>Of note, the fftw3 library files (libfftw3.a and libfftw3.so),
from the Ubuntu 22.04.2 LTS package get installed in the
/usr/lib/x86_64-linux-gnu/ directory:<br>
</p>
<p>username@computername:~/Desktop$ ls
/usr/lib/x86_64-linux-gnu/libfftw3.*<br>
/usr/lib/x86_64-linux-gnu/libfftw3.a<br>
/usr/lib/x86_64-linux-gnu/libfftw3.so<br>
/usr/lib/x86_64-linux-gnu/libfftw3.so.3<br>
/usr/lib/x86_64-linux-gnu/libfftw3.so.3.5.8</p>
<p>Depending on the install approach that you use for fftw3, you
have to adjust the FFTW options and FFTW-LIBS in siteconfig
appropriately.<br>
</p>
[1]
<a class="moz-txt-link-freetext" href="https://github.com/gsabo/WIEN2k-Docs/blob/main/WIEN2k23.2_Ubuntu22.04_Install_with_gfortran.pdf">https://github.com/gsabo/WIEN2k-Docs/blob/main/WIEN2k23.2_Ubuntu22.04_Install_with_gfortran.pdf</a><br>
[2]
<a class="moz-txt-link-freetext" href="https://github.com/gsabo/WIEN2k-Docs/blob/main/WIEN2k23.2_Ubuntu22.04_Install_with_OneAPI(ifort).pdf">https://github.com/gsabo/WIEN2k-Docs/blob/main/WIEN2k23.2_Ubuntu22.04_Install_with_OneAPI(ifort).pdf</a><br>
<p>Kind Regards,</p>
Gavin<br>
WIEN2k user
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 7/21/2023 9:31 AM, Laurence Marks
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANkSMZDi=np5oKJB55VeA+oeASycwfW57zA_wrDbwuBG6JYRcg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)">They
are all the same error, associated with fftw3.f03 not being
found. </div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)">What
you need to do is ls $WIENROOT/SRC_lapw0/fftw3.f03 (it is
probably not there, but just checking.)</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)">Then
look at the few lines above the first error (you don't need
them all). This will give you the compilation options. There
should be something that starts with a -I.... where your
FFTW3 library include files are. This is wrong on your
system. To see what you currently have you can do</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)">grep
"-- fftw" $WIENROOT/SRC_lapw0/Makefile -A10</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)">I
cannot say exactly what is wrong as I dont know how you
configured fftw (not part of Wien2k). Something with them,
which is also in $WIENROOT/WIEN2k_OPTIONS for entries with
FFTW in them</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(0,0,0)"><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jul 21, 2023 at
9:53 AM Brik Hamida <<a href="mailto:hmd.brik@gmail.com"
moz-do-not-send="true" class="moz-txt-link-freetext">hmd.brik@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>hmd@hmd-host:~/wien2k23$ grep -i "error"
*/compile.msg | grep -v -e arguments -e xerror |grep -v
know</div>
<div><br>
</div>
SRC_3ddens/compile.msg:fft_modules.F:174: Error: Can't
open included file 'fftw3.f03'<br>
</div>
</blockquote>
</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">Professor Laurence Marks (Laurie)<br>
Department of Materials Science and Engineering<br>
Northwestern University<br>
<a href="http://www.numis.northwestern.edu" target="_blank"
moz-do-not-send="true">www.numis.northwestern.edu</a><br>
"Research is to see what everybody else has seen, and to
think what nobody else has thought", Albert Szent-Györgyi</div>
</div>
</div>
</blockquote>
</body>
</html>