Skip to content

Commit

Permalink
Merge pull request #96 from PALEOtoolkit/fix_check_parameter_sum
Browse files Browse the repository at this point in the history
Fix error message from check_parameter_sum
  • Loading branch information
sjdaines authored Aug 4, 2023
2 parents 273bcd7 + c200a3e commit 1a91984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parameter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function check_parameter_sum(parameter::VecParameter, ncells; tol=1e-3)
sumok = true

isnothing(ncells) || length(parameter.v) == ncells ||
(sumok = false; @error "config error: length($(parameter.name)) != ncells")
(sumok = false; @error "config error: length($(parameter.name)) != $ncells")
sumpar = sum(parameter.v)
abs(sumpar - 1.0) < tol ||
(sumok = false; @error "config error: sum($(parameter.name)) = $sumpar != 1 +/- $(tol)")
Expand Down

2 comments on commit 1a91984

@sjdaines
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/89035

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.21.14 -m "<description of version>" 1a91984a71e5f201e269f79ecffe7039704db766
git push origin v0.21.14

Please sign in to comment.