-
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
Allow multiple concurrent reaction methods #4609
Merged
kodiakhq
merged 2 commits into
espressomd:python
from
pm-blanco:bugfix_reaction_methods_bookeeping
Dec 12, 2022
Merged
Allow multiple concurrent reaction methods #4609
kodiakhq
merged 2 commits into
espressomd:python
from
pm-blanco:bugfix_reaction_methods_bookeeping
Dec 12, 2022
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
pm-blanco
changed the title
WIP bugfix: reaction_methods check for empty ids before performing reaction steps
bugfix: reaction_methods check for empty ids before performing reaction steps
Dec 12, 2022
jngrad
force-pushed
the
bugfix_reaction_methods_bookeeping
branch
from
December 12, 2022 13:56
f121b44
to
eb4e3d7
Compare
jngrad
changed the title
bugfix: reaction_methods check for empty ids before performing reaction steps
Allow multiple concurrent reaction methods
Dec 12, 2022
jngrad
approved these changes
Dec 12, 2022
jngrad
pushed a commit
to jngrad/espresso
that referenced
this pull request
Dec 23, 2022
Fixes espressomd#4595 Description of changes: - Reaction methods now rebuild the list of free particle ids every time `ReactionAlgorithm::do_reaction()` and `WidomInsertion::calculate_particle_insertion_potential_energy()` are called - Added a new test that checks that the reaction methods do the bookkeeping of empty ids by setting up two different instances of the reaction methods (constant pH and Widom insertion) with competing reactions. I benchmarked my implementation against the current python branch using the `mc_acid_base_reservoir.py` script and I get the following timings: 1.564e-04 (my PR) vs 1.473e-04 (current python branch). That means that my implementation comes with a 6% performance loss in its current state.
jngrad
pushed a commit
to jngrad/espresso
that referenced
this pull request
Dec 23, 2022
Fixes espressomd#4595 Description of changes: - Reaction methods now rebuild the list of free particle ids every time `ReactionAlgorithm::do_reaction()` and `WidomInsertion::calculate_particle_insertion_potential_energy()` are called - Added a new test that checks that the reaction methods do the bookkeeping of empty ids by setting up two different instances of the reaction methods (constant pH and Widom insertion) with competing reactions. I benchmarked my implementation against the current python branch using the `mc_acid_base_reservoir.py` script and I get the following timings: 1.564e-04 (my PR) vs 1.473e-04 (current python branch). That means that my implementation comes with a 6% performance loss in its current state.
jngrad
pushed a commit
to jngrad/espresso
that referenced
this pull request
Dec 23, 2022
Fixes espressomd#4595 Description of changes: - Reaction methods now rebuild the list of free particle ids every time `ReactionAlgorithm::do_reaction()` and `WidomInsertion::calculate_particle_insertion_potential_energy()` are called - Added a new test that checks that the reaction methods do the bookkeeping of empty ids by setting up two different instances of the reaction methods (constant pH and Widom insertion) with competing reactions. I benchmarked my implementation against the current python branch using the `mc_acid_base_reservoir.py` script and I get the following timings: 1.564e-04 (my PR) vs 1.473e-04 (current python branch). That means that my implementation comes with a 6% performance loss in its current state.
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.
Fixes #4595
Description of changes:
ReactionAlgorithm::do_reaction()
andWidomInsertion::calculate_particle_insertion_potential_energy()
are calledI benchmarked my implementation against the current python branch using the
mc_acid_base_reservoir.py
script and I get the following timings: 1.564e-04 (my PR) vs 1.473e-04 (current python branch). That means that my implementation comes with a 6% performance loss in its current state.