<div>Dear Lucas,</div><div><br></div><div>When encountering such problems, it is best to provide a minimum-working-example<br>that reproduces the original problem (instead of the full production script itself).<br>In many cases, this process itself will already indicate a solution.<br>Can you for example run the simple H2O example in <a href="https://www.cp2k.org/tools:ase">https://www.cp2k.org/tools:ase</a>?</div><div><br></div><div>If I would need to guess, I would bet that the "slab.calc = calc1" statement does not<br>properly initialize the calculator, and that you would need e.g. "slab.set_calculator(calc)"<br>instead.<br><br>Best,<br>Maxime<br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">Op vrijdag 15 januari 2021 om 14:47:30 UTC+1 schreef ban...@gmail.com:<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>Dear CP2K users,</div><div><br></div><div>I am using cp2k
interfaced with ase for calculating water adsorption on surfaces. The
last time I have tried, I obtained the following error message:<br></div><div><br></div><div><i><span style="color:rgb(68,68,68)">Traceback (most recent call last):<br> File "Au_water.py", line 120, in <module><br> opt.run(fmax=0.05)<br> File "/usr/lib/python3/dist-packages/ase/optimize/optimize.py", line 170, in run<br> self.set_force_consistent()<br> File "/usr/lib/python3/dist-packages/ase/optimize/optimize.py", line 223, in set_force_consistent<br> self.atoms.get_potential_energy(force_consistent=True)<br> File "/usr/lib/python3/dist-packages/ase/atoms.py", line 682, in get_potential_energy<br> self, force_consistent=force_consistent)<br> File "/usr/lib/python3/dist-packages/ase/calculators/calculator.py", line 441, in get_potential_energy<br> energy = self.get_property('energy', atoms)<br> File "/usr/lib/python3/dist-packages/ase/calculators/calculator.py", line 486, in get_property<br> self.calculate(atoms, [name], system_changes)<br> File "/usr/lib/python3/dist-packages/ase/calculators/cp2k.py", line 233, in calculate<br> self._create_force_env()<br> File "/usr/lib/python3/dist-packages/ase/calculators/cp2k.py", line 303, in _create_force_env<br> self._force_env_id = int(self._shell.recv())<br>ValueError: invalid literal for int() with base 10: '--------------------------------------------------------------------------'<br>/usr/lib/python3/dist-packages/ase/calculators/cp2k.py:472: RuntimeWarning: CP2K-shell not ready, sending SIGTERM.<br> warn("CP2K-shell not ready, sending SIGTERM.", RuntimeWarning)</span><br></i></div><div><br></div><div>Honestly,
I have no idea what is wrong. Could somebody help me to solve this problem? Attached to this email are the .py file used for ase, the generated cp2k input file and the error message. I am using cp2k version
6.1.<br></div><div><br></div><div>Yours faithfully, <br></div><div><br></div><div>Lucas Bandeira<br></div><div><br><br></div></div>
</blockquote></div>