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

Add options for sorting b vectors #539

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

sjhong6230
Copy link
Contributor

This pull request adds the option of sorting the b vectors. This resolves the issue #538.

The checkpoint files modified to sorted b vector orders in #498 and #533 were restored to the previous b vector order for backward compatibility.

The default value of order_b_vectors is false. Also, it raises an error if one does not sort the b vectors for Stengel-Spaldin functional or translation invariance.

@qiaojunfeng qiaojunfeng linked an issue Jan 23, 2025 that may be closed by this pull request
Comment on lines +490 to +495
if ((.not. common_data%kmesh_input%order_b_vectors) .and. &
common_data%wann_control%use_ss_functional) then
call set_error_input(error, 'Error: If use_ss_functional is true, &
order_b_vector must be true. ', common_data%comm)
return
endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably we need to add this check to the library interface w90_input_setopt as well, i.e. after this line

common_data%comm)

But this will duplicate the same code, pinging @JeromeCCP9 maybe you have a better place of organizing these checks?

src/types.F90 Outdated Show resolved Hide resolved
@qiaojunfeng
Copy link
Collaborator

In addition, there is a binary file libwan2.a got committed into the develop branch in a previous PR, could you delete that file as well?

@JeromeCCP9
Copy link
Collaborator

Hi Junfeng! I did that removal in pr #540

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.

Changes in b vector order
3 participants