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

core: particle_data: Fixed removal of bonds to deleted particles. #3356

Merged
merged 1 commit into from
Dec 5, 2019
Merged

core: particle_data: Fixed removal of bonds to deleted particles. #3356

merged 1 commit into from
Dec 5, 2019

Conversation

fweik
Copy link
Contributor

@fweik fweik commented Dec 4, 2019

Fixes #3350.

Description of changes:

  • When removing particles, bonds to the particle are removed also.
    This was broken and the wrong bonds were removed. This fixes this.

This bug was possible to write down because particle ids are int and not
an explicit type.

@codecov
Copy link

codecov bot commented Dec 4, 2019

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #3356   +/-   ##
======================================
- Coverage      86%     86%   -1%     
======================================
  Files         537     537           
  Lines       25283   25283           
======================================
- Hits        21756   21754    -2     
- Misses       3527    3529    +2
Impacted Files Coverage Δ
src/core/particle_data.cpp 97% <100%> (-1%) ⬇️
src/core/electrostatics_magnetostatics/p3m.cpp 85% <0%> (-1%) ⬇️

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 6f89e49...568d6de. Read the comment docs.

@KaiSzuttor
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Dec 5, 2019
3356: core: particle_data: Fixed removal of bonds to deleted particles. r=KaiSzuttor a=fweik

Fixes #3350.

Description of changes:
 - When removing particles, bonds to the particle are removed also.
   This was broken and the wrong bonds were removed. This fixes this.

This bug was possible to write down because particle ids are `int` and not
an explicit type.


Co-authored-by: Florian Weik <fweik@icp.uni-stuttgart.de>
@jngrad jngrad added this to the Espresso 4.1.2 milestone Dec 5, 2019
@bors
Copy link
Contributor

bors bot commented Dec 5, 2019

Build succeeded

@bors bors bot merged commit 568d6de into espressomd:python Dec 5, 2019
@fweik fweik deleted the remove_bonds_to branch August 27, 2020 10:24
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.

Bonds get lost when deleting an uninvolved particle
4 participants