forked from Colvars/colvars
-
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 Colvars#368 in aspathCV and azpathCV.
Instead of calculating the default lambda value in the initialization of the components, this commit provides a negative value for it in the initialization, and then re-computes the lambda value if it is still non-positive in calc_value(). This commit can avoid the use and detection of the null pointer of the Lattice object at least in aspathCV and azpathCV.
- Loading branch information
Showing
2 changed files
with
34 additions
and
20 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