Skip to content

Commit

Permalink
Merge #10
Browse files Browse the repository at this point in the history
10: Change name to NonlinearSolvers r=charleskawczynski a=charleskawczynski



Co-authored-by: Charles Kawczynski <[email protected]>
  • Loading branch information
bors[bot] and charleskawczynski authored Dec 8, 2020
2 parents 4204814 + 3a17ce2 commit cf1bb19
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "NLSolvers"
name = "NonlinearSolvers"
uuid = "f4b8ab15-8e73-4e04-9661-b5912071d22b"
authors = ["Climate Modeling Alliance"]
version = "0.1.0"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NLSolvers.jl
# NonlinearSolvers.jl

A simple GPU-friendly package for solving systems of non-linear equations.

Expand All @@ -11,16 +11,16 @@ A simple GPU-friendly package for solving systems of non-linear equations.
| **Bors** | [![Bors enabled][bors-img]][bors-url] |

[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
[docs-dev-url]: https://CliMA.github.io/NLSolvers.jl/dev/
[docs-dev-url]: https://CliMA.github.io/NonlinearSolvers.jl/dev/

[docs-bld-img]: https://github.com/CliMA/NLSolvers.jl/workflows/Documentation/badge.svg
[docs-bld-url]: https://github.com/CliMA/NLSolvers.jl/actions?query=workflow%3ADocumentation
[docs-bld-img]: https://github.com/CliMA/NonlinearSolvers.jl/workflows/Documentation/badge.svg
[docs-bld-url]: https://github.com/CliMA/NonlinearSolvers.jl/actions?query=workflow%3ADocumentation

[bkci-img]: https://badge.buildkite.com/663724467d2dc86a8a0fd7a5e7148329bb986a127d25cc5fda.svg
[bkci-url]: https://buildkite.com/clima/nlsolvers-ci
[bkci-url]: https://buildkite.com/clima/nonlinearsolvers-ci

[codecov-img]: https://codecov.io/gh/CliMA/NLSolvers.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/CliMA/NLSolvers.jl
[codecov-img]: https://codecov.io/gh/CliMA/NonlinearSolvers.jl/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/CliMA/NonlinearSolvers.jl

[bors-img]: https://bors.tech/images/badge_small.svg
[bors-url]: https://app.bors.tech/repositories/25128
2 changes: 1 addition & 1 deletion bors.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
status = [
"buildkite/nlsolvers-ci",
"buildkite/nonlinearsolvers-ci",
"docs-build"
]
delete_merged_branches = true
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
NLSolvers = "f4b8ab15-8e73-4e04-9661-b5912071d22b"
NonlinearSolvers = "f4b8ab15-8e73-4e04-9661-b5912071d22b"
8 changes: 4 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using NLSolvers, Documenter
using NonlinearSolvers, Documenter

pages = Any["Home" => "index.md", "API" => "API.md"]

Expand All @@ -16,18 +16,18 @@ format = Documenter.HTML(
)

makedocs(
sitename = "NLSolvers.jl",
sitename = "NonlinearSolvers.jl",
doctest = true,
strict = true,
format = format,
clean = true,
checkdocs = :exports,
modules = [NLSolvers],
modules = [NonlinearSolvers],
pages = pages,
)

deploydocs(
repo = "github.com/CliMA/NLSolvers.jl.git",
repo = "github.com/CliMA/NonlinearSolvers.jl.git",
target = "build",
push_preview = true,
)
4 changes: 2 additions & 2 deletions docs/src/API.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# API

```@meta
CurrentModule = NLSolvers
CurrentModule = NonlinearSolvers
```

```@docs
NLSolvers
NonlinearSolvers
```

## Numerical Methods
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# NLSolvers.jl
# NonlinearSolvers.jl

A simple GPU-friendly package for solving systems of non-linear equations.
16 changes: 8 additions & 8 deletions src/NLSolvers.jl → src/NonlinearSolvers.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
NLSolvers
NonlinearSolvers
A set of solvers for systems of non-linear equations
"""
module NLSolvers
module NonlinearSolvers

using DocStringExtensions
using ForwardDiff
Expand All @@ -13,16 +13,16 @@ export solve!
const FTypes = Union{AbstractFloat, AbstractArray}

"""
AbstractNLSolverMethod
AbstractNonlinearSolverMethod
A super type for non-linear systems
"""
abstract type AbstractNLSolverMethod{FTypes} end
abstract type AbstractNonlinearSolverMethod{FTypes} end

"""
method_args(method::AbstractNLSolverMethod)
method_args(method::AbstractNonlinearSolverMethod)
Return tuple of positional args for `AbstractNLSolverMethod`.
Return tuple of positional args for `AbstractNonlinearSolverMethod`.
"""
function method_args end

Expand All @@ -35,7 +35,7 @@ include("newton_method_ad.jl")
# Main entry point: Dispatch to specific method
"""
solve!(
method::AbstractNLSolverMethod{FT},
method::AbstractNonlinearSolverMethod{FT},
soltype::SolutionType = CompactSolution(),
tol::Union{Nothing, AbstractTolerance} = nothing,
maxiters::Union{Nothing, Int} = 10_000,
Expand All @@ -48,7 +48,7 @@ Solve the non-linear system given
- `maxiters` the maximum number of iterations to perform
"""
function solve!(
method::AbstractNLSolverMethod{FT},
method::AbstractNonlinearSolverMethod{FT},
soltype::SolutionType = CompactSolution(),
tol::Union{Nothing, AbstractTolerance} = nothing,
maxiters::Union{Nothing, Int} = 10_000,
Expand Down
2 changes: 1 addition & 1 deletion src/newton_method.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A non-linear system of equations type.
# Fields
$(DocStringExtensions.FIELDS)
"""
struct NewtonsMethod{FT, F!, J!, A, JA} <: AbstractNLSolverMethod{FT}
struct NewtonsMethod{FT, F!, J!, A, JA} <: AbstractNonlinearSolverMethod{FT}
"Function to find the root of"
f!::F!
"Jacobian of `f!`"
Expand Down
2 changes: 1 addition & 1 deletion src/newton_method_ad.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A non-linear system of equations type.
# Fields
$(DocStringExtensions.FIELDS)
"""
struct NewtonsMethodAD{FT, F!, A, JA} <: AbstractNLSolverMethod{FT}
struct NewtonsMethodAD{FT, F!, A, JA} <: AbstractNonlinearSolverMethod{FT}
"Function to find the root of"
f!::F!
"Initial guess"
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ else
end

using Test
using NLSolvers
using NonlinearSolvers

@testset "NLSolvers tests" begin
@testset "NonlinearSolvers tests" begin
function f!(F, x)
t = Tuple(x)
F_nt = ntuple(Val(length(F))) do i
Expand Down

2 comments on commit cf1bb19

@charleskawczynski
Copy link
Member

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/26026

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.1.0 -m "<description of version>" cf1bb1933c4e6f061f394d2aa5296ad037bb063e
git push origin v0.1.0

Please sign in to comment.