Skip to content

Commit

Permalink
Merge pull request #122 from SciML/ap/patch
Browse files Browse the repository at this point in the history
Patch Watson Function
  • Loading branch information
avik-pal authored Dec 25, 2023
2 parents 1e8c196 + 6052b7f commit 3d0defd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/NonlinearProblemLibrary/Project.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name = "NonlinearProblemLibrary"
uuid = "b7050fa9-e91f-4b37-bcee-a89a063da141"
version = "0.1.1"
version = "0.1.2"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"

[compat]
Aqua = "0.8"
LinearAlgebra = "1.6"
SciMLBase = "1, 2"
julia = "1.6"

Expand Down
3 changes: 2 additions & 1 deletion lib/NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ p5_dict = Dict("n" => n, "start" => x_start, "sol" => x_sol,
# ------------------------------------- Problem 6 ------------------------------------------
function p6_f!(out, x, p = nothing)
n = length(x)
out .= 0
for i in 1:29
ti = i / 29.0
sum1 = 0.0
Expand All @@ -113,7 +114,7 @@ function p6_f!(out, x, p = nothing)
end
end

out[1] = out[1] + 3.0 * x[1] - 2.0 * x[1] * x[1] + 2.0 * x[1]^3
out[1] = out[1] + 3.0 * x[1] - 2.0 * x[1] * x[2] + 2.0 * x[1]^3
out[2] = out[2] + x[2] - x[2]^2 - 1.0
nothing
end
Expand Down

2 comments on commit 3d0defd

@avik-pal
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 register subdir=lib/NonlinearProblemLibrary

@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/97714

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 NonlinearProblemLibrary-v0.1.2 -m "<description of version>" 3d0defd4324c4edd2c6e1e87eb2342e6d17922dc
git push origin NonlinearProblemLibrary-v0.1.2

Please sign in to comment.