-
Notifications
You must be signed in to change notification settings - Fork 188
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
Refactor thermostats and add unit tests #3438
Merged
Merged
Conversation
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
Member
jngrad
commented
Jan 25, 2020
•
edited
Loading
edited
- Gather thermostat global variables in structs (Remove global variables #2628)
- Make thermostat functions pure functions to eliminate side effects
- Add Boost unit tests for thermostats
- Reduce thermostat code complexity
Pass thermostat parameter structs as const reference instead of using globals.
Narrow interfaces, simplify code and fix include statements.
Simplify and centralize the logic to calculate the noise standard deviation in Brownian/Langevin thermostats. Replace all the inverse sigmas by regular sigmas in the Brownian prefactors; those were no longer needed since the Brownian code is now separate from the Langevin code.
Remove side effect and hide implementation details of Particles. Fuse loops. Remove comments in Brownian functions that walked through the propagator workflow, because that information is now completely transparent by reading the body of `brownian_dynamics_propagator()`.
Codecov Report
@@ Coverage Diff @@
## python #3438 +/- ##
========================================
Coverage ? 86%
========================================
Files ? 537
Lines ? 25446
Branches ? 0
========================================
Hits ? 22061
Misses ? 3385
Partials ? 0
Continue to review full report at Codecov.
|
jngrad
force-pushed
the
boost-thermostats
branch
from
January 25, 2020 19:15
51e2190
to
be3e2f3
Compare
jngrad
changed the title
WIP: Refactor thermostats and add unit tests
Refactor thermostats and add unit tests
Jan 25, 2020
|
fweik
approved these changes
Jan 25, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.