-
Notifications
You must be signed in to change notification settings - Fork 182
Modify post_fp_cp2k, adapt to SCF not converged situation.
#1562
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
base: devel
Are you sure you want to change the base?
Changes from 2 commits
169183e
c06a35f
0663bd3
4214d77
01581e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4437,16 +4437,19 @@ def post_fp_cp2k(iter_index, jdata, rfailed=None): | |||||||||||||||
| sys_output = glob.glob(os.path.join(work_path, "task.%s.*/output" % ss)) | ||||||||||||||||
| sys_output.sort() | ||||||||||||||||
| tcount += len(sys_output) | ||||||||||||||||
| all_sys = None | ||||||||||||||||
| log_file_path = os.path.join(work_path, f"{ss}.fp-fail.log") | ||||||||||||||||
| all_sys = dpdata.MultiSystems(type_map=jdata["type_map"]) | ||||||||||||||||
| for oo in sys_output: | ||||||||||||||||
| _sys = dpdata.LabeledSystem(oo, fmt="cp2k/output") | ||||||||||||||||
|
||||||||||||||||
| for oo in sys_output: | |
| _sys = dpdata.LabeledSystem( | |
| oo, fmt="cp2kdata/e_f", type_map=jdata["type_map"] | |
| ) | |
| all_sys.append(_sys) | |
| icount += 1 | |
dulinhan marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cp2kdata already checks the convergence.
if the scf is not converged, dpdata will return empty object.
https://github.com/robinzyb/cp2kdata/blob/d74c14cbf7470451af443c706d8479c8b486a68d/cp2kdata/dpdata_plugin.py#L24-L43
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will. But when using MultiSystems, the empty object will be added into that, for example create an empty "C0H0O0". This will raise error when save the MultiSystems to data.xxx. Maybe we should change the subroutine which you mentioned to skip instead of creating empty object.
Uh oh!
There was an error while loading. Please reload this page.