Skip to content

Fix the bug in PWmat-MOVEMENT converter#138

Merged
amcadmus merged 2 commits into
deepmodeling:develfrom
liuliping0315:devel
Apr 17, 2021
Merged

Fix the bug in PWmat-MOVEMENT converter#138
amcadmus merged 2 commits into
deepmodeling:develfrom
liuliping0315:devel

Conversation

@liuliping0315

Copy link
Copy Markdown
Contributor

Etot in PWmat molecular dynamics: Ep + Ek. (Ep: potential energy; Ek: kinetic energy)
The old version "movement.py" read the Etot=Ep+Ek in MOVEMENT, change it to Ep. (Ep is DFT total energy)
The forces in PWmat-MOVEMENT are dE/dR, lacking a minus sign, add '-' in this commit.

@amcadmus

Copy link
Copy Markdown
Member

Hi @liuliping0315 Thanks a lot for contributing.
Could you please fix the issues in the unittest? Thank you very much

@liuliping0315

liuliping0315 commented Apr 17, 2021 via email

Copy link
Copy Markdown
Contributor Author

@codecov-commenter

codecov-commenter commented Apr 17, 2021

Copy link
Copy Markdown

Codecov Report

Merging #138 (d9dfce2) into devel (3443aec) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##            devel     #138   +/-   ##
=======================================
  Coverage   84.36%   84.36%           
=======================================
  Files          28       28           
  Lines        3326     3326           
=======================================
  Hits         2806     2806           
  Misses        520      520           
Impacted Files Coverage Δ
dpdata/pwmat/movement.py 77.77% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3443aec...d9dfce2. Read the comment docs.

@amcadmus amcadmus merged commit 30e6929 into deepmodeling:devel Apr 17, 2021
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.

3 participants