Skip to content

Commit

Permalink
Merge pull request #314 from CliMA/ck/assert_bool
Browse files Browse the repository at this point in the history
Add Bool assertion in callback loop
  • Loading branch information
charleskawczynski authored Sep 16, 2024
2 parents 8a2bb9c + cd97991 commit cdcab7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ClimaTimeSteppers"
uuid = "595c0a79-7f3d-439a-bc5a-b232dc3bde79"
authors = ["Climate Modeling Alliance"]
version = "0.7.36"
version = "0.7.37"

[deps]
ClimaComms = "3a4d1b5c-c61d-41fd-a00a-5873ba7a1b0d"
Expand Down
2 changes: 1 addition & 1 deletion src/integrators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function __step!(integrator)
# apply callbacks
discrete_callbacks = integrator.callback.discrete_callbacks
for (ncb, callback) in enumerate(discrete_callbacks)
if callback.condition(integrator.u, integrator.t, integrator)
if callback.condition(integrator.u, integrator.t, integrator)::Bool
NVTX.@range "Callback $ncb of $(length(discrete_callbacks))" color = colorant"yellow" begin
callback.affect!(integrator)
end
Expand Down

2 comments on commit cdcab7f

@charleskawczynski
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/115295

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.37 -m "<description of version>" cdcab7fcef42740a620f06237da0781703cee410
git push origin v0.7.37

Please sign in to comment.