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

fix a bug about "end_indx" in opavg_driver.f90 #198

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

shenmidelin
Copy link
Contributor

There is a bug in line 99: "end_indx(1, 2, myid+1): end_indx(1, 2, myid+1)", it should be "end_indx(1, 2, myid+1): end_indx(2, 2, myid+1)". This will fix the problem about calculating the expectation value of an operator by using opavg.x.

There is a bug in line 99: "end_indx(1, 2, myid+1): end_indx(1, 2, myid+1)", it should be "end_indx(1, 2, myid+1): end_indx(2, 2, myid+1)".
@mpmdean
Copy link
Contributor

mpmdean commented Nov 30, 2023

Thanks Yilin! I think we should prioritize merging this and disseminating the new version.

Did you run a test to see this fixed the issue? If so can you copy or attach the code here. At some point, it would be good to put this in the test suite later on.

@shenmidelin
Copy link
Contributor Author

Thanks Yilin! I think we should prioritize merging this and disseminating the new version.

Did you run a test to see this fixed the issue? If so can you copy or attach the code here. At some point, it would be good to put this in the test suite later on.

I agree. I did run a test, which is attached here.

test_opavg.tar.gz

@shenmidelin shenmidelin merged commit 695de35 into NSLS-II:master Dec 3, 2023
7 checks passed
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.

2 participants