Skip to content
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

debug iterdict function for generate cp2k input #603

Closed
wants to merge 0 commits into from

Conversation

ChiahsinChu
Copy link

The original iterdict function used for generating CP2K input finds the place for inserting a new string by list.index(object). This method fails when there are two identical keywords/section names in the input file (but at different levels). For example, there are many PRINT sections available in CP2K, which cannot be printed out correctly with the original iterdict function.

In the modified version, I replace the Arg flag with loop_idx for recording the exact positions where the new string should be inserted (from the end of the list).
A minor change in the make_cp2k_input function is made correspondingly.

@wanghan-iapcm wanghan-iapcm changed the base branch from master to devel December 30, 2021 23:57
@robinzyb
Copy link
Collaborator

Sorry I missed this PR from last year. i can't see why the pr fail the unittest. That is weird. @ChiahsinChu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants