<div dir="ltr">Hello,<div><br></div><div>I am a beginner to cp2k and I have run into a problem. I am running a molecular dynamics simulation with an NPT_F (flexible cell) ensemble, where each a restart file is generated every 10 MD steps and resubmitted as the input every 40 or so steps. However, I have noticed that the conserved quantity increases after each restart resulting in a stepwise pattern (see attached). The MD simulation runs without warning, though. I was wondering if any one else has tried to use restart files with a flexible cell and if so, what information is missing information in my restart files generated to preserve the same conserved quantity.. </div><div><br></div><div>Thanks a lot,</div><div><br></div><div>Amandine Chouanard</div><div><br></div><div><br></div><div><br></div><div>Additional information:</div><div>cp2k version: 2.7</div><div><br></div><div>Here is my input file: (The restart file is a bit long, so I can post it separately if requested.)<br></div><div>
<p class="p1"><span class="s1"><font color="#999999">&GLOBAL</font></span></p><p class="p1"><span class="s1"><font color="#999999"> PROJECT metaD-MgH2-</font></span></p><p class="p1"><span class="s1"><font color="#999999"> RUN_TYPE MD</font></span></p><p class="p1"><span class="s1"><font color="#999999"> PRINT_LEVEL LOW</font></span></p><p class="p1"><span class="s1"><font color="#999999">&END GLOBAL</font></span></p><p class="p2"><font color="#999999"><span class="s1"></span><br></font></p><p class="p1"><span class="s1"><font color="#999999">&MOTION</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &MD</font></span></p><p class="p1"><span class="s1"><font color="#999999"> ENSEMBLE NPT_F</font></span></p><p class="p1"><span class="s1"><font color="#999999"> STEPS 100000</font></span></p><p class="p1"><span class="s1"><font color="#999999"> TIMESTEP 4.9999999999999994E-01</font></span></p><p class="p1"><span class="s1"><font color="#999999"> TEMPERATURE 2.9800000000000000E+02</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &BAROSTAT</font></span></p><p class="p1"><span class="s1"><font color="#999999"> PRESSURE [bar] 1.0</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &THERMOSTAT</font></span></p><p class="p1"><span class="s1"><font color="#999999"> TYPE CSVR</font></span></p><p class="p1"><span class="s1"><font color="#999999"> REGION MASSIVE</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &CSVR</font></span></p><p class="p1"><span class="s1"><font color="#999999"> TIMECON 4.9999999999999993E+01</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END CSVR</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END THERMOSTAT</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END MD</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &PRINT</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &RESTART SILENT</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &EACH</font></span></p><p class="p1"><span class="s1"><font color="#999999"> MD 10</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END EACH</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END RESTART</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END PRINT</font></span></p><p class="p2"><font color="#999999"><span class="s1"></span><br></font></p><p class="p1"><span class="s1"><font color="#999999"> &FREE_ENERGY</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &METADYN</font></span></p><p class="p1"><span class="s1"><font color="#999999"> DO_HILLS FALSE</font></span></p><p class="p2"><font color="#999999"><span class="s1"></span><br></font></p><p class="p1"><span class="s1"><font color="#999999"> &METAVAR</font></span></p><p class="p1"><span class="s1"><font color="#999999"> SCALE 1.0</font></span></p><p class="p1"><span class="s1"><font color="#999999"> COLVAR 1</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END METAVAR</font></span></p><p class="p2"><font color="#999999"><span class="s1"></span><br></font></p><p class="p1"><span class="s1"><font color="#999999"> &METAVAR</font></span></p><p class="p1"><span class="s1"><font color="#999999"> SCALE 1.0</font></span></p><p class="p1"><span class="s1"><font color="#999999"> COLVAR 2</font></span></p><p class="p1"><span class="s1"><font color="#999999"> &END METAVAR</font></span></p><p class="p2"><font color="#999999"><span class="s1"></span><br></font></p><p class="p1"><span class="s1"><font color="#999999"> &METAVAR</font></span></p><p class="p1"><span class="s1"><font color="#999999"> SCALE 1.0</font></span></p><p class="p1">
</p><p class="p1"><span class="s1"><font color="#999999"> COLVAR 3</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &END METAVAR</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &METAVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> SCALE 1.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> COLVAR 4</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END METAVAR</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &PRINT</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &COLVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &EACH</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> MD 1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END EACH</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> COMMON_ITERATION_LEVELS 100000</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END COLVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END PRINT</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END METADYN</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END FREE_ENERGY</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999">&END MOTION</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999">&FORCE_EVAL</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> STRESS_TENSOR ANALYTICAL</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> METHOD QS # use Quickstep - electronic structure module of CP2K</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &DFT</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> BASIS_SET_FILE_NAME ${DATA_PATH}/GTH_BASIS_SETS</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> POTENTIAL_FILE_NAME ${DATA_PATH}/GTH_POTENTIALS</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &QS</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ALMO_SCF F</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> EPS_DEFAULT 1.0E-13 # overall accuracy of the Kohn-Sham matrix build</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> EXTRAPOLATION USE_GUESS</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END QS</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &MGRID</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> CUTOFF 400</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> NGRIDS 4</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END MGRID</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &XC</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &XC_FUNCTIONAL BLYP</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END XC_FUNCTIONAL</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END XC</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &SCF</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ADDED_MOS 200</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> EPS_SCF 1.0E-7</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> SCF_GUESS ATOMIC</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> MAX_SCF 500</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &MIXING</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> METHOD PULAY_MIXING #DIRECT_P_MIXING</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ALPHA 0.30</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &PRINT</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &RESTART</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> BACKUP_COPIES 1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &EACH</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> QS_SCF 1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> JUST_ENERGY 1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END EACH</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END RESTART</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END PRINT</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &END SCF</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &KPOINTS</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> SCHEME MONKHORST-PACK 4 6 4</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> SYMMETRY FALSE</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> EPS_GEO 1.e-8</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> FULL_GRID TRUE</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> VERBOSE TRUE</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> PARALLEL_GROUP_SIZE 4</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END KPOINTS</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &END DFT</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &SUBSYS</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &CELL</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ABC 9.002 4.501 6.04</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> MULTIPLE_UNIT_CELL 1 1 1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &CELL_REF</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ABC 10.8024 5.4012 7.248</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END CELL_REF</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END CELL</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &TOPOLOGY</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> MULTIPLE_UNIT_CELL 1 1 1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &COORD</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> SCALED T</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.75 0.0 0.75</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.902 0.304 0.75</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.598 0.696 0.75</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.0 0.5 0.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.152 0.196 0.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.348 0.804 0.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.25 0.0 0.75</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.402 0.304 0.75</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.098 0.696 0.75</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.5 0.5 0.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.652 0.196 0.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.848 0.804 0.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.75 0.0 0.25</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.902 0.304 0.25</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.598 0.696 0.25</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.0 0.5 0.5</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.152 0.196 0.5</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.348 0.804 0.5</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.25 0.0 0.25</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.402 0.304 0.25</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.098 0.696 0.25</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> Mg 0.5 0.5 0.5</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.652 0.196 0.5</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> H 0.848 0.804 0.5</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END COORD</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &KIND Mg</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> BASIS_SET TZV2P-GTH</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> POTENTIAL GTH-BLYP-q2</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END KIND</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &KIND H</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> BASIS_SET TZV2P-GTH</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> POTENTIAL GTH-BLYP-q1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END KIND</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &COLVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_FROM 22</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_TO 2 3 5 6 8 9 11 12 14 15 17 18 20 21 23 24</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> L 4</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> RCUT 2.7</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ALPHA 6.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END COLVAR</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &COLVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_FROM 10</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_TO 2 3 5 6 8 9 11 12 14 15 17 18 20 21 23 24</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> L 6</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> RCUT 2.7</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ALPHA 6.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END COLVAR</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &COLVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_FROM 22</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_TO 1 4 7 10 13 16 19</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> L 4</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> RCUT 4.1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ALPHA 7.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END COLVAR</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &COLVAR</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_FROM 22</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ATOMS_TO 1 4 7 10 13 16 19</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> L 6</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> RCUT 4.1</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> ALPHA 7.0</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END QPARM</font></span></p>
<p class="p2"><span class="s1"><font color="#999999"> &END COLVAR</font></span></p>
<p class="p1"><font color="#999999"><span class="s1"></span><br></font></p>
<p class="p2"><span class="s1"><font color="#999999"> &END SUBSYS</font></span></p>
<p class="p2"><span class="s1"><font color="#999999">&END FORCE_EVAL</font></span></p></div></div>