<br><br><div>Dear Samir,</div><div><br></div><div>The toolchain of the master trunk includes libXC 5.1.3. Use either that one or http://www.tddft.org/programs/libxc/down.php?file=5.1.3/libxc-5.1.3.tar.gz or 
https://www.cp2k.org/static/downloads/libxc-<span>5.1.3</span>.tar.gz

.</div><div>Best,</div><div>Frederick<br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">abde...@gmail.com schrieb am Sonntag, 25. April 2021 um 15:18:36 UTC+2:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Dear Frederick,</div><div>No, I don't have a special interest in libxc 6.0. Could you please send me the link for the libXC 5.1.3 trunk version.</div><div>Many many thanks,</div><div>Samir<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Sunday, 25 April 2021 at 13:58:33 UTC+1 Frederick Stein wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear Samir,</div><div><br></div><div>For now, we are not interested in moving to LibXC 6.0 because there is for now no official release. I would recommend to use LibXC 5.1.3 with the trunk version of CP2K if functionalities of LibXC 5.x are requested. Do you really need LibC 6.0 instead of LibXC 5.x?<br></div><div><br></div><div>I have downloaded and compiled the trunk version of LibXC and I have the .mod file. I have compiled the LibXC master branch with "autoreconf -i && ./configure --prefix=PATH/TO/LIBXC && make && make check && make install" without any additional flags. So, LibXC should provide the Fortran bindings automatically. How are you compiling LibXC? If you are not doing anything different than me, you have to ask the LibXC developers directly.</div><div><br></div><div>Best,</div><div>Frederick<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr"><a rel="nofollow">abde...@gmail.com</a> schrieb am Sonntag, 25. April 2021 um 04:02:30 UTC+2:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear Frederick,</div><div>I downloaded a master version of libxc (6.0.0),tested it and installed it successfully.</div><div>when cp2k tries to link with it, it says:</div><div>/home/samir/CP2K/cp2k-8.1/src/xc/xc_libxc_wrap.F:34:7:<br><br>   34 |    USE xc_f03_lib_m, ONLY: xc_f03_func_end, &<br>      |       1<br>Fatal Error: Cannot open module file ‘xc_f03_lib_m.mod’ for reading at (1): No such file or directory</div><div><br></div><div>I thought that the problem may be that it could not find the .mod file in the include directory but it's not the case as this file does not exist anywhere in my system.</div><div>Is there a way to make the libxc produce that file?</div><div>Many many thanks for your help,</div><div>yours,</div><div>Samir<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Saturday, 24 April 2021 at 06:29:31 UTC+1 Frederick Stein wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear Samir,</div><div><br></div><div>CP2K 8.1 does not work with LibXC 5.1.3 because of the interface problem in xc_libxc.F you have found. In the trunk, it has been fixed. That means if you have to stick to CP2K 8.1, you cannot use LibXC 5.x. If you definitely need functionality from LibXC 5.x, download and compile the trunk version (master branch) of LibXC or wait for the next CP2K release.</div><div><br></div><div>Best,</div><div>Frederick<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr"><a rel="nofollow">abde...@gmail.com</a> schrieb am Samstag, 24. April 2021 um 03:38:56 UTC+2:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello every one,<br></div><div>I am compiling cp2k-8.1 with libxc-5.1.3. but when it comes to link with the libxc it crash with: /home/samir/CP2K/cp2k-8.1/src/xc/xc_libxc.F:1648:66:<br><br> 1648 |                   CALL xc_f03_lda_exc(xc_func, 1, rhov(1, 1), exc)<br>      |                                                                  1<br>Error: Type mismatch in argument ‘np’ at (1); passed INTEGER(4) to INTEGER(8)<br>/home/samir/CP2K/cp2k-8.1/src/xc/xc_libxc.F:1661:73:<br><br> 1661 |                   CALL xc_f03_lda_vxc(xc_func, 1, rhov(1, 1), vrho(1, 1))<br>      |                                                                         1</div><div>I tried changing npoints integer to integer(8) in xc_libxc.F but still have the same problem.</div><div><br>I don't know whether the problem comes from the xc_libxc.F cp2k-8.1 program or the libxc-5.1.3 programs.</div><div>I did not have such a problem when I was using cp2k-6.1 with libxc-4....</div><div>I am using mpif90 (gfortran wrapper)</div><div>Many many thanks,</div><div>Samir<br></div></blockquote></div></blockquote></div></blockquote></div></blockquote></div></blockquote></div>