<div dir="ltr">Hi Juerg,<div><br></div><div>Thank you for the explanation. It is interesting that atomic energy decomposition can be performed for HF, but not DFT, since DFT is not much different, and the Exc integration w.r.t. individual atoms seems quite trivial. Just curious if you know of any plan to include the XC term in the future for these sorts of energy decomposition analyses? If not, since CP2K is open source, I wonder where to start in the source code if I were to implement this for my own use. </div><div><br></div><div>Thanks so much.</div><div><br>On Wednesday, January 24, 2018 at 1:46:19 AM UTC-8, jgh wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi
<br>
<br>yes, you are right, the code stops because of the difference
<br>in the total energy and the sum of atomic energies.
<br>The cause of the error is that one term (Exc) has not been
<br>implemented. Atomic energies only works for (some) classical force fields,
<br>semi-empirical methods, and HF.
<br>
<br>regards
<br>
<br>Juerg 
<br>------------------------------<wbr>------------------------------<wbr>--
<br>Juerg Hutter                         Phone : ++41 44 635 4491
<br>Institut für Chemie C                FAX   : ++41 44 635 6838
<br>Universität Zürich                   E-mail: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="w64z8QFyBQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">hut...@chem.uzh.ch</a>
<br>Winterthurerstrasse 190
<br>CH-8057 Zürich, Switzerland
<br>------------------------------<wbr>------------------------------<wbr>---
<br>
<br>-----<a href="javascript:" target="_blank" gdf-obfuscated-mailto="w64z8QFyBQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a> wrote: -----
<br>To: cp2k <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="w64z8QFyBQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>>
<br>From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="w64z8QFyBQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">yufeng...@gmail.com</a>
<br>Sent by: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="w64z8QFyBQAJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">cp...@googlegroups.com</a>
<br>Date: 01/24/2018 05:58AM
<br>Subject: [CP2K:9901] Problem with Atomic Energies
<br>
<br>Hi,
<br>
<br>I am trying to calculate the atomic energies using the following properties keywords:
<br>
<br>  &PROPERTIES
<br>     &ATOMIC
<br>     ENERGY
<br>     &END ATOMIC
<br>  &END PROPERTIES
<br>
<br>within the FORCE_EVAL section. In the output file, the energies were printed, but immediately after that it showed an error:
<br>
<br> *****************************<wbr>******************************<wbr>********************
<br> *   ___                                                                       *
<br> *  /   \                                                                      *
<br> * [ABORT]                                                                     *
<br> *  \___/                             CPASSERT failed                          *
<br> *    |                                                                        *
<br> *  O/|                                                                        *
<br> * /| |                                                                        *
<br> * / \                                                 force_env_methods.F:387 *
<br> *****************************<wbr>******************************<wbr>********************
<br>
<br>I have tried two systems, an SCF calculation of bulk Si with 8 atoms and a geometry relaxation of H2O molecule, both of which were copied from the 2016 cp2k summer exercises, in multiple versions of CP2K, 2.6, 4.1 and 5.1, and on multiple machines, and the problem remained. 
<br>
<br>In both systems, the atomic energies did not sum up to the total potential energies, for example, the following lines were printed right before the above error message:
<br> Potential energy (Atomic):                                    -15.7645860649792
<br> Potential energy (Total) :                                    -17.2639239214133
<br> Difference               :                                      1.4993378564341
<br>
<br>I suspect that there was some cross checking within the program that found the discrepancies and stopped the program from proceeding. 
<br>
<br>My question is, what should I do with CP2K to obtain these atomic energies? I am still quite new to CP2K and would really want to get this problem solved. 
<br>
<br>Thanks.  
<br>  -- 
<br> You received this message because you are subscribed to the Google Groups "cp2k" group.
<br> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="w64z8QFyBQAJ" 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="w64z8QFyBQAJ" 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="https://groups.google.com/group/cp2k" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/group/cp2k';return true;" onclick="this.href='https://groups.google.com/group/cp2k';return true;">https://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></blockquote></div></div>