-
Notifications
You must be signed in to change notification settings - Fork 142
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
J1Spin indexing issue #4612
Merged
Merged
J1Spin indexing issue #4612
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c1bf7ec
Fix indexing issue
shivupa eb9d689
Format
shivupa d0a390e
cleaning
shivupa 933423d
remove useless loop
shivupa e4defc9
Fix
shivupa 4de4279
Clean up addFunc
shivupa 5b2d327
Adding test
shivupa 0574de9
Merge branch 'develop' into J1spin_indexing_fix
ye-luo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove useless loop
- Loading branch information
commit 933423de56681946e0e0e4952018ec5f64070915
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't see why loop i is even needed.
J1UniqueFunctors[source_type * NumTargetGroups + target_type]
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.
If there were more than one combination of
i
andj
thenafunc
would be moved multiple times.Looks like that is happening on line 160 😟
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.
Very true.
target_type == -1
case seems broken. That needs to be sorted out when unifying J1 and J1Spin.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.
Yeah not sure what I was doing in the past but this was definitely wrong.
target_type
should only be-1
for spin independent J1 so the radial jastrow builder should never call this function withtarget_type == -1
. I now raise a runtime error if we ever hit that case.Also, yes, no loop is even needed.