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

reset threads also when initializing the summary callback #1587

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

ranocha
Copy link
Member

@ranocha ranocha commented Jul 25, 2023

I added the option to reset the threads from Polyester.jl in also in the summary callback. The idea is that this supports another development workflow where we just modify the RHS implementation and call solve again without re-ccreating the ODE.

See also #1584, #1583

The same comment as in 036eaed applies: However, I did not document it in the docstring since we have not documented that we use Polyester.jl threads in general - and the resetting is specific to Polyester.jl. I was not sure whether we still would like to keep the option to change the threading backend any time - although I do not see a good reason why we should do so.

I added the option to reset the threads from Polyester.jl in also in the summary callback.
The idea is that this supports another development workflow where we just modify the RHS
implementation and call solve again without re-ccreating the ODE.

The same comment as in 036eaed applies:
However, I did not document it in the docstring since we have not documented
that we use Polyester.jl threads in general - and the resetting is specific
to Polyester.jl. I was not sure whether we still would like to keep the option
to change the threading backend any time - although I do not see a good reason
why we should do so.
@ranocha ranocha requested a review from jlchan July 25, 2023 14:44
jlchan
jlchan previously approved these changes Jul 25, 2023
@ranocha ranocha enabled auto-merge (squash) July 25, 2023 15:33
@ranocha ranocha merged commit d7ea40b into main Jul 25, 2023
28 checks passed
@ranocha ranocha deleted the hr/reset_theads branch July 25, 2023 16:42
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.

2 participants