Dear Prof. Hutter,<br /><br />Many thanks for your rapid and instructive reply! <br /><br />The symmetry and space group of all the test cases ("zro" and "quartz") in the two folders you've mentioned (as in version 2023.1) were kept perfectly. <br /><br />Thus, I used quartz.inp input file for my iodine primitive test case only changing the $CELL and $COORD to iodine. <br /><br />Here's what I've found. In the situation when "KEEP_SYMMETRY" and "KEEP_SPACE_GROUP" were both set T, the space group of inp file was correctly recognized as #64,Cmce but not maintained after the cell-varied optimization. (Situation 3 in the table, input file attached.) <br /><br />No.  SYMMETRY             KEEP_ANGLE  inp_file_spgr_recognized  restart_file_spgr*<br />1    MONOCLINIC_GAMMA_AB  T           2,P-1                     2,P-1<br />2    NONE                 T           64,Cmce                   64,Cmce<br />3    NONE                 F           64,Cmce                   13,P2/c<br /><br />( * restart_file_spgr was tested by vaspkit)<br /><br />PS:<br />I went through the related source code to find that my question might relate to the space group identification and maintainance algorithm of the primitive cell in cp2k. I learnt that in "space_groups.F", the "identify_space_group" function (which CG or BFGS calls) links to spglib, while the "spgr_apply_rotations_coord" function is designed for atomic positions asjustment according to specified symmetry operations. But I'm not a seasoned programmer and if I have time I'll go through the details in the future. Again, many thanks for your instructions!<br /><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, April 24, 2024 at 4:39:30 PM UTC+8 Jürg Hutter 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
<br>I don't have experience with such calculations, but the relevant tests are in
<br>.../tests/Fist/regtest-spgr/
<br>.../tests/QS/regtest-spgr/
<br>Maybe you can see where your example goes beyond what has been tested.
<br>regards
<br>JH
<br>
<br>________________________________________
<br>From: <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a> <<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>> on behalf of Lushan Wang <<a href data-email-masked rel="nofollow">wanglu...@gmail.com</a>>
<br>Sent: Tuesday, April 23, 2024 7:53 PM
<br>To: cp2k
<br>Subject: [CP2K:20126] Symmetry recognization of primitive cells in CELL_OPT
<br>
<br>Symmetry was not retained during cell-varied geometry optimization of an iodine single crystal (Space Group #64 - Cmce, 8 atoms in unit cell) with primitive cell (4 atoms). No matter we set "KEEP_SPACE_GROUP" and "KEEP_SYMMETRY" to be T or F, with or without set "SYMMETRY" to be "ORTHORHOMBIC" or even "MONOCLINIC_GAMMA_AB Monoclinic (a = b ≠ c, α = β = 90°, γ ≠ 90°)" (as it is in <a href="https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/SUBSYS/CELL/CELL_REF.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/SUBSYS/CELL/CELL_REF.html&source=gmail&ust=1714198833346000&usg=AOvVaw1nezO0Nd5wgaArUtRBtBmE">https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/SUBSYS/CELL/CELL_REF.html</a>) in $CELL, the symmetry was not maintained and became monoclinic or triclinic where it can't recognize the structure as a primitive cell of C-centered orthorhombic lattice any more.
<br>
<br>My question: In cp2k, must we not use primitive cell for cell-varied structural optimization or am I too naive to set correct parameters to retain symmetry?
<br>
<br>I've searched Google and conversations in cp2k group and didn't find relevant contents. Any help would be appreciated. Thanks!
<br>
<br>PS: Original Cell information:
<br>      &CELL
<br>            A [angstrom]     3.<a href="tel:(763)%20253-7052" value="+17632537052" target="_blank" rel="nofollow">7632537052</a>    -2.2808521645     0.0000000000
<br>            B [angstrom]     3.<a href="tel:(763)%20253-7052" value="+17632537052" target="_blank" rel="nofollow">7632537052</a>     2.2808521645     0.0000000000
<br>            C [angstrom]     0.0000000000     0.0000000000     9.7061460000
<br>         PERIODIC XYZ
<br> SYMMETRY MONOCLINIC_GAMMA_AB
<br>      &END CELL
<br>      &COORD
<br>            I     0.0000000000     0.<a href="tel:(747)%20499-1182" value="+17474991182" target="_blank" rel="nofollow">7474991182</a>     1.1868772390
<br>            I     0.0000000000     3.<a href="tel:(814)%20205-2109" value="+18142052109" target="_blank" rel="nofollow">8142052109</a>     8.<a href="tel:(519)%20268-7610" value="+15192687610" target="_blank" rel="nofollow">5192687610</a>
<br>            I    -0.0000000000     <a href="tel:(533)%20353-0464" value="+15333530464" target="_blank" rel="nofollow">1.5333530464</a>     6.0399502390
<br>            I     0.0000000000     3.0283512827     3.6661957610
<br>      &END COORD
<br>
<br>Methods:
<br>Functional: PBE + DFT-D3(BJ)
<br>Basis sets: DZVP-MOLOPT-SR-GTH
<br>K-points: 8,8,3
<br>CUTOFF and rel-CUTOFF: 400,50
<br>EPS_SCF: 1E-6
<br>EPS_DEFAULT: 1E-12
<br>
<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 data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a><mailto:<a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>>.
<br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/12b9cf36-0665-4e90-b69f-67139d7304aen%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/12b9cf36-0665-4e90-b69f-67139d7304aen%2540googlegroups.com&source=gmail&ust=1714198833346000&usg=AOvVaw2zoL4D1lROcBnIPRjOncVO">https://groups.google.com/d/msgid/cp2k/12b9cf36-0665-4e90-b69f-67139d7304aen%40googlegroups.com</a><<a href="https://groups.google.com/d/msgid/cp2k/12b9cf36-0665-4e90-b69f-67139d7304aen%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=en&q=https://groups.google.com/d/msgid/cp2k/12b9cf36-0665-4e90-b69f-67139d7304aen%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1714198833346000&usg=AOvVaw2V9r_aMxgL44L-3EPPtr1h">https://groups.google.com/d/msgid/cp2k/12b9cf36-0665-4e90-b69f-67139d7304aen%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br></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/8c482d84-6dbc-451f-b7f5-d650363f48a4n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/8c482d84-6dbc-451f-b7f5-d650363f48a4n%40googlegroups.com</a>.<br />