<div dir="ltr"><div><font color="#000000"><span style="font-size:14.6667px">Hi CP2K forum,</span></font></div><div><font color="#000000"><span style="font-size:14.6667px"><br></span></font></div><span style="color:rgb(0,0,0);font-size:14.6667px">I am running a lengthy SCF calculation (over 10k iterations) and noticed a gradual increase in the allocated memory (I used TRACE keyword to print current allocated memory). It appears that the step-by-step increase in memory allocation happens when the Kohn-Sham Hamiltonian is re-calculated, specifically within the qs_ks_did_change function (in qs_ks_types.F).</span><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><span style="color:rgb(0,0,0);font-size:14.6667px">The SCF routine is my own code that relies on the CP2K built-in Hamiltonian subroutines. It functions properly, but its only problem is the ever increasing memory consumption.</span><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><span style="color:rgb(0,0,0);font-size:14.6667px">Since I do not need to keep previous Hamiltonians (for any kind of DIIS extrapolation), is there any way to deallocate all memory used by the Hamiltonian-related subroutines (at least once in a while, say, after 1000 SCF iterations)?</span><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><span style="color:rgb(0,0,0);font-size:14.6667px">Alternatively, are there any input keywords that can ensure that the Hamiltonian structures are reset once in a while?</span><br aria-hidden="true" style="color:rgb(0,0,0);font-size:14.6667px"><div><span style="color:rgb(0,0,0);font-size:14.6667px"><br></span></div><div><font color="#000000"><span style="font-size:14.6667px">Thank you in advance for your time and your suggestions.</span></font></div><div><font color="#000000"><span style="font-size:14.6667px"><br></span></font></div><div><font color="#000000"><span style="font-size:14.6667px">Best regards,</span></font></div><div><font color="#000000"><span style="font-size:14.6667px">Cindy Pham.</span></font></div></div>
<p></p>
-- <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="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/CAN4Jpm3f3BUuJ%2B3EDEuqpp0TbBEkaHfOjQm%2Bn9%3D6vYquYQNQvQ%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/CAN4Jpm3f3BUuJ%2B3EDEuqpp0TbBEkaHfOjQm%2Bn9%3D6vYquYQNQvQ%40mail.gmail.com</a>.<br />