Dear Chris,<br>Thanks for your reply. <br>Finally, I need to apply 7 constraints. The energy calculation with seven constraints has been tested, and it worked fine. However, the final spins in Hirshfeld analysis are not quite what I have defined as constraints. The files related to this calculation are attached.<br>I read the " Electron and Hole Mobilities in Bulk Hematite from Spin- Constrained Density Functional Theory" paper by Christian S. Ahart, Kevin M. Rosso, and Jochen Blumberger. And it seems they employed 2 constraints for geometry optimization using cDFT. I am not sure why it doesn't work for my case. <br>As you requested, I have attached the xyz file.<br>Thank you so much for your assistance, I really appreciate it. <br>Please let me know if you need any other information.<br>Lili<br><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Friday, December 2, 2022 at 9:05:52 AM UTC-5 uca...@ucl.ac.uk 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;">Hi Lili,<div><br></div><div>I had a look at your input files and the issue is likely related to the use of 2 constraints (your unsuccessful job) instead of 1 constraint (your successful job). Optimising multiple constraints is very challenging, and therefore this has not been tested extensively.</div><div><br></div><div>If you provide your structure '<a href="http://ex1-geo.xyz" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=http://ex1-geo.xyz&source=gmail&ust=1670077867210000&usg=AOvVaw3PYzbNdWZf24OSvhZ0ydYC">ex1-geo.xyz</a>' then I can check your job and perhaps implement a bug fix if needed.</div><div><br></div><div>Regards,</div><div>Chris <br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, 1 December 2022 at 23:13:27 UTC <a href data-email-masked rel="nofollow">rassoul...@gmail.com</a> 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">Dear all, <br>I am using 2022.1 version of cp2k. But I have the same problem as Chris. I want to optimize the geometry of a periodic system using cDFT. I received Segmentation fault error ("Program received signal SIGSEGV: Segmentation fault - invalid memory reference.") with Hirshfeld constraints. Same as Chris, it is sensitive to the combinations of atoms I use in &ATOM_GROUP. In my case, it only works fine for one combination of atoms and not any other combinations. The input and output files for the successful and unsuccessful jobs are attached. Only the ATOM GROUP in the input files was altered.<br>I Changed the number of nodes, cores, and memory, but it didn't solve the problem. <br>Any advice or tips on how to solve this issue would be greatly valued.<br>Best regards,<br>Lili<br><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Tuesday, March 31, 2020 at 12:21:31 PM UTC-4 <a rel="nofollow">uca...@ucl.ac.uk</a> 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 dir="ltr"><div>This bug has now been fixed in the latest development version of CP2K. See <a href="https://github.com/cp2k/cp2k/issues/847" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://github.com/cp2k/cp2k/issues/847&source=gmail&ust=1670077867210000&usg=AOvVaw2_yh4hYmQ2XhVP9yLb91su">https://github.com/cp2k/cp2k/issues/847</a></div></div><div dir="ltr"><div><br></div><br><br>On Thursday, 19 March 2020 18:31:58 UTC, Chris Ahart  wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>When performing CDFT with Hirshfeld I am getting the following error: "Program received signal SIGSEGV: Segmentation fault - invalid memory reference." This appears to be an issue reported previously (<a href="https://github.com/cp2k/cp2k/issues/560" rel="nofollow" target="_blank" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://github.com/cp2k/cp2k/issues/560&source=gmail&ust=1670077867210000&usg=AOvVaw0YiG2f37giGrKlcur6Gok9">https://github.com/cp2k/cp2k/issues/560</a>), however I am encountering it again in CP2K 7.1. This error occurs on both my local machine and on a cluster.</div><div><br></div><div>I have found this error to be sensitive to the system and to the atoms included in &ATOM_GROUP, as for certain combinations of atoms CP2K runs while with other combinations it crashes. Becke constraint runs in all cases, so this is isolated to Hirshfeld. I have attached two example input and output files, one with an atom combination that runs while another which fails. I have confirmed that Hirshfeld runs for the input files included in the CP2K CDFT tutorial.</div><div><br></div><div>Any guidance or insight to resolve this problem would be greatly appreciated.</div><div><br></div><div>Thank you for your help and time.</div><div><br></div><div>Regards,</div><div>Chris</div></div></blockquote></div></blockquote></div></blockquote></div></blockquote></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/d03711db-aa0f-432d-8508-d24ba65f8786n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/d03711db-aa0f-432d-8508-d24ba65f8786n%40googlegroups.com</a>.<br />