<div dir="ltr">Iain:<div>it works now with CP2K 2.7, thanks a lot.<div><div>Zhiping<br><br>On Saturday, August 8, 2015 at 3:04:19 PM UTC+8, IBethune wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi Zhiping,
<br>
<br>PLUMED 2 support is not in CP2K 2.6, you will need to use the 2.7  
<br>development trunk version.  I realise this was not clear from the  
<br>howto page as later revisions exist in 2.6 due to back-ported bug  
<br>fixes.  I edited the page to make it clear to use CP2K 2.7.  Also  
<br>-D__PLUMED2 is the correct define.  -D__PLUMED_CP2K will get you the  
<br>PLUMED 1.3 interface (hence the undefined symbols that you found).
<br>
<br>Cheers
<br>- Iain
<br>
<br>Quoting Zhiping <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="4HimKR8XAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">xuz...@gmail.com</a>> on Fri, 7 Aug 2015 19:53:06 -0700 (PDT):
<br>
<br>> Dear developers:
<br>>
<br>> Here have found two problems during the compilation of CP2K (2.6.1, rev
<br>> 15284)  with PLUMED2 (2.2b) support.
<br>>
<br>> 1. The compilation option -D__PLUMED2 should be changed to -D__PLUMED_CP2K
<br>> in the installation instruction page
<br>> (<a href="http://www.cp2k.org/howto:install_with_plumed" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.cp2k.org%2Fhowto%3Ainstall_with_plumed\46sa\75D\46sntz\0751\46usg\75AFQjCNFd3P9qaVxVvT4GmDDzWK4Az31-jg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.cp2k.org%2Fhowto%3Ainstall_with_plumed\46sa\75D\46sntz\0751\46usg\75AFQjCNFd3P9qaVxVvT4GmDDzWK4Az31-jg';return true;">http://www.cp2k.org/howto:<wbr>install_with_plumed</a>).
<br>>
<br>> 2. Errors were reported on undefined references to 'init_metadyn_' and
<br>> 'meta_force_calculation_'
<br>> although I found some tips on the addition '_' at the end of function names
<br>> from the Quantum Espresso user guide (calling C from Fortran -
<br>> <a href="http://www.quantum-espresso.org/wp-content/uploads/Doc/pw_user_guide/node21.html" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.quantum-espresso.org%2Fwp-content%2Fuploads%2FDoc%2Fpw_user_guide%2Fnode21.html\46sa\75D\46sntz\0751\46usg\75AFQjCNExYeHdfM59I1Y67540tUgsr-W-Ug';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.quantum-espresso.org%2Fwp-content%2Fuploads%2FDoc%2Fpw_user_guide%2Fnode21.html\46sa\75D\46sntz\0751\46usg\75AFQjCNExYeHdfM59I1Y67540tUgsr-W-Ug';return true;">http://www.quantum-espresso.<wbr>org/wp-content/uploads/Doc/pw_<wbr>user_guide/node21.html</a>),
<br>> I cannot locate the definition of functions INIT_METADYN and
<br>> META_FORCE_CALCULATION in either CP2K or PLUMED2 - these functions are
<br>> available in PLUMED 1.3.
<br>>
<br>> /home/xuzp/bin/packages/cp2k-<wbr>2.6.1/lib/linux_gnu/popt/<wbr>libcp2kmotion.a(md_run.o):
<br>> In function `__md_run_MOD_qs_mol_dyn_low':
<br>>
<br>> md_run.F:(.text+0x2407): undefined reference to `init_metadyn_'
<br>>
<br>> md_run.F:(.text+0x2a83): undefined reference to `init_metadyn_'
<br>>
<br>> /home/xuzp/bin/packages/cp2k-<wbr>2.6.1/lib/linux_gnu/popt/<wbr>libcp2kmain.a(metadynamics.o):
<br>> In function `__metadynamics_MOD_metadyn_<wbr>integrator':
<br>>
<br>> metadynamics.F:(.text+0x9b49): undefined reference to
<br>> `meta_force_calculation_'
<br>>
<br>> collect2: error: ld returned 1 exit status
<br>>
<br>> Please help me to solve the issue #2.
<br>>
<br>> Thank you.
<br>>
<br>> Zhiping
<br>>
<br>> --
<br>> You received this message because you are subscribed to the Google  
<br>> Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it,  
<br>> send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="4HimKR8XAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp2k+uns...@googlegroups.<wbr>com</a>.
<br>> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="4HimKR8XAAAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>.
<br>> Visit this group at <a href="http://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='http://groups.google.com/group/cp2k';return true;" onclick="this.href='http://groups.google.com/group/cp2k';return true;">http://groups.google.com/<wbr>group/cp2k</a>.
<br>> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/<wbr>optout</a>.
<br>>
<br>
<br>
<br>-- 
<br>The University of Edinburgh is a charitable body, registered in
<br>Scotland, with registration number SC005336.
<br>
<br>
<br></blockquote></div></div></div></div>