<div dir="ltr">Dear Luis,<div><br></div><div>Have you succeed to perform correct B97M-V calculation with cp2k?</div><div>Could you provide a some input files (&XC ...&END XC, pseudo and basis set combination) that reasonably give back the results of other implementations (eg QCHEM)?  </div><div><br></div><div>Best,</div><div><br>Janos</div><div><br></div><div><br></div><div><br></div><div>On Friday, July 17, 2015 at 8:34:46 PM UTC+2, lar...@lbl.gov wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">As the subject suggests I am trying to use the XC functional B97M-V that is implemented in the trunk version of libxc. The first thing that I did was to compile the trunk version of LIBXC and CP2K 2.6.1. I have been able to run simulations using the conventional </span><span style="font-size:12.8000001907349px">functionals from libxc. With "conventional" I mean the</span><span style="font-size:12.8000001907349px"> ones that are automatically referenced in CP2K after installation in the file cp2k/src/xc/libxc_funcs_m.F".</span><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">The functional that I am interested in using can be found in the file /libxc/src/libxc_funcs.f90 under the name XC_MGGA_XC_B97M_V. The references to this functional are not in the libxc_funcs_m.F file of CP2K so I added the references to this functional manually modifying the following files:</span><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px">In /cp2k/src/xc/libxc_funcs_m.F I added the line: "INTEGER, PARAMETER :: XC_MGGA_XC_B97M_V = 254", where the number 254 is the reference for the functional in the file libxc/src/libxc_funcs.f90)</div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">In /cp2k/src/xc/xc_libxc.F I added the line "IF (TRIM(func_name)=='XC_MGGA_XC_</span><span style="font-size:12.8000001907349px"><wbr>B97M_V') get_func_id = 254"</span><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px">However, after adding the references of the functional to these files it still doesn't work (when I run a CP2K simulation using the XC_MGGA_XC_B97M_V says that it cannot find that name). I am not sure if I have to modify any other files or what to do at this point. I would appreciate any help. Thanks in advance!</div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px"><br></div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px">Best,</div><div style="font-family:arial,sans-serif;font-size:12.8000001907349px">Luis</div></div></blockquote></div></div>