-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP2K parser crashes when printlevel was reduced #227
Comments
Hi again! This is an easy fix, but please, check my comment in #228 first (I think we can solve these in one go when transferring the CP2K to its own repository). And thanks again for delving in the parser! This feedback is very much appreciated 🙂 In this case, the issue is that
|
Thanks for the answer. Of course there has to be some default value for the planewave cutoff, it is an essential ingredient of every plane wave calculation, but in case of CP2K, i don't know whether it is a constant or whether it is calculated from system parameters (cell size, k points, involved elements e.g.) |
Great, we go with the if then. Thanks for the detailed answer, that was very helpful! |
Hi, Yes, there is indeed a default cutoff value of 280, see https://manual.cp2k.org/trunk/CP2K_INPUT/FORCE_EVAL/DFT/MGRID.html#CP2K_INPUT.FORCE_EVAL.DFT.MGRID.MULTIGRID_CUTOFF It would indeed be great if the input file is also checked before setting the default value. |
Great, thanks @mm-may, I have to definitely check the documentation, we can go with option 1 anyways and set the default value as you suggest.
This is a bit more complicated. We can do it, but there is always the risk that input files are being modified by users and calculations are not referring to the actual input file being uploaded; this is one of the reasons we like to keep out input files as much as possible out of parsing. |
The CP2K parser crashed when calculations were run with
This causes the complete Quickstep output block (lines starting with
QS|
) to be omitted. The parser then fails to read the plane wave cutoff from the output file and subsequently crashes:Relevant source code:
electronic-parsers/electronicparsers/cp2k/parser.py
Lines 2022 to 2026 in e7d1ffe
Getting planewave_cutoff fails, and the attempt to convert the empty result to hartree crashes the parser. Proposed fix: Enclose in Try/Except block, as this is a perfectly fine CP2K calculation which should not crash the parser.
CP2K version: 2024.1, but problem is also present with CP2K 9.1
nomad.version: 1.2.2.dev465+gc6aff391
NOMAD parser version: current github repo
Attachments: complete input and output files for reproducing the issue (strip the .txt extension!, This was added for Github to accept the upload).
H2O.inp.txt
H2O.out.txt
The text was updated successfully, but these errors were encountered: