Skip to content
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

Fix thermostat and integrator checkpointing #3245

Merged
merged 11 commits into from
Oct 15, 2019

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Oct 11, 2019

The checkpointing mechanism silently broke in 4.1 for the SD and NPT integrators and LB and NPT thermostats. This was fixed, and now all integrators and thermostats checkpoints are tested in CI.

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #3245 into python will decrease coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           python   #3245    +/-   ##
=======================================
- Coverage      85%     85%    -1%     
=======================================
  Files         528     530     +2     
  Lines       25805   26027   +222     
=======================================
+ Hits        22150   22174    +24     
- Misses       3655    3853   +198
Impacted Files Coverage Δ
src/core/npt.cpp 94% <100%> (ø) ⬆️
src/core/forces_inline.hpp 84% <0%> (-1%) ⬇️
src/core/electrostatics_magnetostatics/p3m.cpp 86% <0%> (-1%) ⬇️
...bonded_interactions/nonbonded_interaction_data.hpp 100% <0%> (ø) ⬆️
...bonded_interactions/nonbonded_interaction_data.cpp 100% <0%> (ø) ⬆️
src/core/particle_data.hpp 97% <0%> (ø) ⬆️
src/core/object-in-fluid/affinity.cpp 0% <0%> (ø)
src/core/object-in-fluid/affinity.hpp 0% <0%> (ø)
src/core/particle_data.cpp 96% <0%> (ø) ⬆️
src/core/event.cpp 96% <0%> (ø) ⬆️
... and 2 more

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 c1b18fd...fb3c8fe. Read the comment docs.

Happens when calling `system.integrator.run(0)`. In that case the
average instantaneous pressure is undefined and can only be NaN.
@jngrad
Copy link
Member Author

jngrad commented Oct 15, 2019

bors r=KaiSzuttor

bors bot added a commit that referenced this pull request Oct 15, 2019
3164: Separate quaternion algebra from particle rotation r=fweik a=jngrad

Description of changes:
- extract quaternion algebra from the `particle_data.hpp` and `rotation.hpp` files
   - removes code duplication caused by a (now resolved) circular dependency (see #3157)
   - makes it possible to replace the quaternion code by a dedicated library, e.g. [boost:qvm::quat](https://www.boost.org/doc/libs/1_68_0/libs/qvm/doc/index.html) or [boost::math::quaternion](https://www.boost.org/doc/libs/1_62_0/libs/math/doc/html/quaternions.html) in the core (see #2289), [rowan](https://rowan.readthedocs.io/en/latest/) in the interface (see #2964)
- simplify code around call sites using Vector4d arithmetic, `std::tuple`, Particle references
- documentation cleanup

3245: Fix thermostat and integrator checkpointing r=KaiSzuttor a=jngrad

The checkpointing mechanism silently broke in 4.1 for the SD and NPT integrators and LB and NPT thermostats. This was fixed, and now all integrators and thermostats checkpoints are tested in CI.

Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
Co-authored-by: Kai Szuttor <kai@icp.uni-stuttgart.de>
@bors
Copy link
Contributor

bors bot commented Oct 15, 2019

Build succeeded

@bors bors bot merged commit fb3c8fe into espressomd:python Oct 15, 2019
@jngrad jngrad deleted the fix-therm-checkpointing branch January 18, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants