<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Tobias<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Unfortunately, that seems to be not a small test case as the first optimisation step took already more than 4200 seconds. Moreover, the information from ATOM_POSITIONS_INPUT
 is missing which is needed to run the case.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Matthias<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> cp...@googlegroups.com [mailto:cp...@googlegroups.com]
<b>On Behalf Of </b>Tobias Binninger<br>
<b>Sent:</b> 26 October 2017 10:07<br>
<b>To:</b> cp2k<br>
<b>Subject:</b> Re: [CP2K:9591] KEEP_ANGLES not possible in CELL_OPT using BFGS<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Matthias,<br>
<br>
I am using CP2k version 4.1.<br>
Here is an example input showing the problem:<br>
<br>
&GLOBAL<br>
  PROJECT SnO2<br>
  RUN_TYPE CELL_OPT<br>
  PRINT_LEVEL LOW<br>
&END GLOBAL<br>
<br>
&FORCE_EVAL<br>
  METHOD QS<br>
  STRESS_TENSOR ANALYTICAL<br>
<br>
  &SUBSYS<br>
    &CELL<br>
      ABC 5.0 5.1 3.3<br>
      MULTIPLE_UNIT_CELL 3 3 4<br>
    &END CELL<br>
    &TOPOLOGY<br>
      COORD_FILE_FORMAT XYZ<br>
      COORD_FILE_NAME ATOM_POSITIONS_INPUT<br>
      MULTIPLE_UNIT_CELL 3 3 4<br>
    &END TOPOLOGY<br>
    &KIND Sn<br>
      BASIS_SET DZVP-MOLOPT-SR-GTH<br>
      POTENTIAL GTH-PBE-q4<br>
    &END KIND<br>
    &KIND O<br>
      BASIS_SET DZVP-MOLOPT-SR-GTH<br>
      POTENTIAL GTH-PBE-q6<br>
    &END KIND<br>
  &END SUBSYS<br>
<br>
  &DFT<br>
    BASIS_SET_FILE_NAME BASIS_MOLOPT<br>
    POTENTIAL_FILE_NAME GTH_POTENTIALS<br>
    SPIN_POLARIZED T<br>
    MULTIPLICITY 1<br>
    &QS<br>
      EPS_DEFAULT 1.0E-8<br>
      METHOD GAPW<br>
    &END QS<br>
    &MGRID<br>
      NGRIDS 5<br>
      CUTOFF 800<br>
      REL_CUTOFF 60<br>
    &END MGRID<br>
    &SCF<br>
      SCF_GUESS ATOMIC<br>
      EPS_SCF 1.0E-06<br>
      MAX_SCF 1000<br>
      &OT<br>
        ALGORITHM IRAC<br>
        ENERGY_GAP 0.001<br>
        PRECONDITIONER FULL_ALL<br>
      &END OT<br>
    &END SCF<br>
    &XC<br>
      &XC_FUNCTIONAL PBE<br>
      &END XC_FUNCTIONAL<br>
    &END XC<br>
  &END DFT<br>
<br>
&END FORCE_EVAL<br>
<br>
&MOTION<br>
<br>
  &CELL_OPT<br>
    TYPE GEO_OPT<br>
    MAX_DR    1.0E-03<br>
    MAX_FORCE 1.0E-03<br>
    RMS_DR    1.0E-03    <br>
    RMS_FORCE 1.0E-03<br>
    MAX_ITER 200<br>
    KEEP_ANGLES  T<br>
    OPTIMIZER BFGS<br>
  &END CELL_OPT<br>
<br>
  &GEO_OPT<br>
    TYPE MINIMIZATION<br>
    MAX_DR    1.0E-03<br>
    MAX_FORCE 1.0E-03<br>
    RMS_DR    1.0E-03    <br>
    RMS_FORCE 1.0E-03<br>
    MAX_ITER 200<br>
    OPTIMIZER BFGS<br>
  &END GEO_OPT<br>
<br>
  &CONSTRAINT<br>
    &FIXED_ATOMS<br>
      COMPONENTS_TO_FIX XYZ<br>
      LIST 1<br>
    &END FIXED_ATOMS<br>
  &END CONSTRAINT<br>
<br>
&END MOTION<br>
<br>
This is the first part of the output, showing that the angles already change in the first step:<br>
<br>
 *******************************************************************************<br>
 ***                     STARTING   CELL   OPTIMIZATION                      ***<br>
 ***                                   BFGS                                  ***<br>
 *******************************************************************************<br>
<br>
 CELL| Volume [angstrom^3]:                                             3029.400<br>
 CELL| Vector a [angstrom]:      15.000     0.000     0.000    |a| =      15.000<br>
 CELL| Vector b [angstrom]:       0.000    15.300     0.000    |b| =      15.300<br>
 CELL| Vector c [angstrom]:       0.000     0.000    13.200    |c| =      13.200<br>
 CELL| Angle (b,c), alpha [degree]:                                       90.000<br>
 CELL| Angle (a,c), beta  [degree]:                                       90.000<br>
 CELL| Angle (a,b), gamma [degree]:                                       90.000<br>
 CELL| Numerically orthorhombic:                                             YES<br>
<br>
 --------  Informations at step =     0 ------------<br>
  Optimization Method        =                 BFGS<br>
  Total Energy               =     -2561.1655488258<br>
  Internal Pressure [bar]    =    -94313.1351913527<br>
  Used time                  =             4260.816<br>
 ---------------------------------------------------<br>
<br>
 --------------------------<br>
 OPTIMIZATION STEP:      1<br>
 --------------------------<br>
<br>
  Step is scaled; Scaling factor =  0.58939<br>
<br>
 CELL| Volume [angstrom^3]:                                             2942.352<br>
 CELL| Vector a [angstrom]:      14.928     0.000     0.000    |a| =      14.928<br>
 CELL| Vector b [angstrom]:       0.000    15.220     0.000    |b| =      15.220<br>
 CELL| Vector c [angstrom]:       0.002     0.002    12.950    |c| =      12.950<br>
 CELL| Angle (b,c), alpha [degree]:                                       89.993<br>
 CELL| Angle (a,c), beta  [degree]:                                       89.993<br>
 CELL| Angle (a,b), gamma [degree]:                                       90.000<br>
 CELL| Numerically orthorhombic:                                              NO<br>
<br>
Best regards,<br>
Tobias<o:p></o:p></p>
</div>
<p class="MsoNormal">-- <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+unsu...@googlegroups.com">cp2k+unsu...@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:cp...@googlegroups.com">cp...@googlegroups.com</a>.<br>
Visit this group at <a href="https://groups.google.com/group/cp2k">https://groups.google.com/group/cp2k</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<o:p></o:p></p>
</div>
</body>
</html>