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

Feature: Add INPUT parameter bands_to_print for LCAO basis set #3934

Merged
merged 13 commits into from
Apr 14, 2024

Conversation

AsTonyshment
Copy link
Collaborator

@AsTonyshment AsTonyshment commented Apr 8, 2024

Linked Issue

Fixes #2924 and #3266. Updates: Fixes #3947.
Partially implements feature support #3572.

What's changed?

  • Introduced a new INPUT parameter bands_to_print for LCAO basis set, akin to ocp_set. This allows for selective band calculation when the calculation keyword is set to get_pchg.
  • Retained nbands_istate temporarily as calculation = get_wf remains unchanged.
  • Updated and expanded the related documentation.
  • Resolved the band index discrepancy in the PW basis set, ensuring that indexing now consistently starts from 1 for users.

Notice

May potentially conflict with the naming in PR #3501 (PW basis set), which will be addressed and unified in subsequent updates.

Updates: Following @mohanchen's suggestion, I have standardized the INPUT parameter to bands_to_print, and uniformly changed the input format to string. This has been updated accordingly in the PW basis set code. The docs has also been updated to reflect these changes. INPUT parameter band_print_num is deleted.

@AsTonyshment AsTonyshment requested a review from mohanchen April 8, 2024 14:17
@AsTonyshment AsTonyshment changed the title Add INPUT parameter out_band_index Feature: Add INPUT parameter out_band_index Apr 8, 2024
@WHUweiqingzhou
Copy link
Collaborator

Is it possible to use same input parameters for PW and LCAO?

@AsTonyshment
Copy link
Collaborator Author

Is it possible to use same input parameters for PW and LCAO?

Yes, this is what I'm doing at present.

@AsTonyshment AsTonyshment changed the title Feature: Add INPUT parameter out_band_index Feature: Add INPUT parameter bands_to_print for LCAO basis set Apr 10, 2024
@AsTonyshment AsTonyshment requested a review from mohanchen April 11, 2024 17:56
Copy link
Collaborator

@mohanchen mohanchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mohanchen mohanchen merged commit c1621de into deepmodeling:develop Apr 14, 2024
12 checks passed
@AsTonyshment AsTonyshment deleted the fix-param-nbands-istate branch April 14, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants