Skip to content

Fix PIMD energy for internal water potentials#105

Merged
danielhollas merged 3 commits intomasterfrom
fix-water
Apr 3, 2022
Merged

Fix PIMD energy for internal water potentials#105
danielhollas merged 3 commits intomasterfrom
fix-water

Conversation

@danielhollas
Copy link
Copy Markdown
Contributor

Fixes #66

@danielhollas danielhollas self-assigned this Apr 1, 2022
Comment thread src/water_interface.cpp
// nwalk loop
}

*eclas /= *nwalk;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the fix

Comment thread src/init.F90
end if

if (pot == 'mmwater' .or. pot_ref == 'mmwater') then
if (pot == '_mmwater_' .or. pot_ref == '_mmwater_') then
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

To be consistent with other internal potentials.

@danielhollas danielhollas requested a review from suchanj April 1, 2022 18:10
@danielhollas
Copy link
Copy Markdown
Contributor Author

I still need to update a couple of tests but otherwise ready for review.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2022

Codecov Report

Merging #105 (1a46383) into master (45a1689) will decrease coverage by 0.05%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
- Coverage   87.13%   87.08%   -0.06%     
==========================================
  Files          41       41              
  Lines        5805     5805              
==========================================
- Hits         5058     5055       -3     
- Misses        747      750       +3     
Impacted Files Coverage Δ
src/forces.F90 97.43% <ø> (-0.02%) ⬇️
src/water.F90 89.28% <66.66%> (-10.72%) ⬇️
src/force_abin.F90 70.28% <100.00%> (+0.17%) ⬆️
src/init.F90 70.15% <100.00%> (ø)

@danielhollas danielhollas marked this pull request as ready for review April 3, 2022 21:16
@danielhollas danielhollas merged commit 71c3e61 into master Apr 3, 2022
@danielhollas danielhollas deleted the fix-water branch April 3, 2022 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong energy from water potentials for PIMD

2 participants