forked from QMCPACK/qmcpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix indexing in diff Jastrow component
Second part for fix of QMCPACK#2814 The myVars in this object contains all the variational parameters aggregated from all the radial functions (in their myVars), including the non-active ones. The OffSet variable maps the indices from the radial function myVars to myVars in this object. The output for parameter derivatives should use a contiguous index (i.e. all the non-active parameters removed). This is what the Index value in VariableSet maps (returned by myVars.where). In the code, index k covers all variables in myVars. The index kk is the contiguous index for output. Some of the arrays are indexed with k, but should be indexed with kk instead.
- Loading branch information
1 parent
8334156
commit 7e321f8
Showing
2 changed files
with
90 additions
and
9 deletions.
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
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