Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 26, 2024
1 parent 33f1ec9 commit ea5e0a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ using SparseMatrixColorings: ConstantColoringAlgorithm, GreedyColoringAlgorithm,

Utils.is_extension_loaded(::Val{:SparseMatrixColorings}) = true

function NonlinearSolveBase.select_fastest_coloring_algorithm(::Val{:SparseMatrixColorings},
function NonlinearSolveBase.select_fastest_coloring_algorithm(
::Val{:SparseMatrixColorings},
prototype, f::NonlinearFunction, ad::AbstractADType)
prototype === nothing && return GreedyColoringAlgorithm(LargestFirst())
if SciMLBase.has_colorvec(f)
Expand Down
4 changes: 2 additions & 2 deletions lib/NonlinearSolveBase/src/descent/geodesic_acceleration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function InternalAPI.init(
end

function InternalAPI.solve!(
cache::GeodesicAccelerationCache, J, fu, u, idx::Val = Val(1);
skip_solve::Bool = false, kwargs...
cache::GeodesicAccelerationCache, J, fu, u, idx::Val = Val(1);
skip_solve::Bool = false, kwargs...
)
a = get_acceleration(cache, idx)
v = get_velocity(cache, idx)
Expand Down
8 changes: 0 additions & 8 deletions src/NonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,19 @@ using LineSearch: LineSearch, AbstractLineSearchCache, LineSearchesJL, NoLineSea
using LinearSolve: LinearSolve
using MaybeInplace: @bb
using NonlinearSolveBase: NonlinearSolveBase,
# ForwardDiff integration support
nonlinearsolve_forwarddiff_solve, nonlinearsolve_dual_solution,
nonlinearsolve_∂f_∂p, nonlinearsolve_∂f_∂u,
# faster norms
L2_NORM,
# termination conditions
AbsNormTerminationMode, AbstractNonlinearTerminationMode,
AbstractSafeBestNonlinearTerminationMode,
# autodiff selection
select_forward_mode_autodiff, select_reverse_mode_autodiff,
select_jacobian_autodiff,
# helpers for constructing caches
construct_linear_solver, construct_jacobian_cache,
# Descent Directions
DescentResult,
SteepestDescent, NewtonDescent, DampedNewtonDescent, Dogleg,
GeodesicAcceleration,
# Timer Outputs
reset_timer!, @static_timeit


# XXX: Remove
import NonlinearSolveBase: InternalAPI, concrete_jac, supports_line_search,
supports_trust_region, set_du!, last_step_accepted,
Expand Down

0 comments on commit ea5e0a5

Please sign in to comment.