Skip to content

Commit b61c760

Browse files
author
SciML Bot
committed
Apply JuliaFormatter to fix code formatting
- Applied JuliaFormatter with SciML style guide - Formatted 5 files 🤖 Generated by OrgMaintenanceScripts.jl
1 parent 10168b1 commit b61c760

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/factorization.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ patterns with “more structure”.
861861
!!! note
862862
863863
By default, the SparseArrays.jl are implemented for efficiency by caching the
864-
symbolic factorization. If the sparsity pattern of `A` may change between solves, set `reuse_symbolic=false`.
865-
If the pattern is assumed or known to be constant, set `reuse_symbolic=true` to avoid
864+
symbolic factorization. If the sparsity pattern of `A` may change between solves, set `reuse_symbolic=false`.
865+
If the pattern is assumed or known to be constant, set `reuse_symbolic=true` to avoid
866866
unnecessary recomputation. To further reduce computational overhead, you can disable
867867
pattern checks entirely by setting `check_pattern = false`. Note that this may error
868868
if the sparsity pattern does change unexpectedly.
@@ -887,8 +887,8 @@ A fast sparse LU-factorization which specializes on sparsity patterns with “le
887887
!!! note
888888
889889
By default, the SparseArrays.jl are implemented for efficiency by caching the
890-
symbolic factorization. If the sparsity pattern of `A` may change between solves, set `reuse_symbolic=false`.
891-
If the pattern is assumed or known to be constant, set `reuse_symbolic=true` to avoid
890+
symbolic factorization. If the sparsity pattern of `A` may change between solves, set `reuse_symbolic=false`.
891+
If the pattern is assumed or known to be constant, set `reuse_symbolic=true` to avoid
892892
unnecessary recomputation. To further reduce computational overhead, you can disable
893893
pattern checks entirely by setting `check_pattern = false`. Note that this may error
894894
if the sparsity pattern does change unexpectedly.

src/simplegmres.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ function SciMLBase.solve!(cache::SimpleGMRESCache{false}, lincache::LinearCache)
308308
# [cₖ sₖ] [ r̄ₖ.ₖ ] = [rₖ.ₖ]
309309
# [s̄ₖ -cₖ] [hₖ₊₁.ₖ] [ 0 ]
310310
(c[inner_iter], s[inner_iter],
311-
R[nr + inner_iter]) = _sym_givens(
311+
R[nr + inner_iter]) = _sym_givens(
312312
R[nr + inner_iter],
313313
Hbis)
314314

test/adjoint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ A = rand(n, n);
3131
b1 = rand(n);
3232

3333
_ff = (x,
34-
y) -> f(x,
34+
y) -> f(x,
3535
y;
3636
alg = LinearSolve.DefaultLinearSolver(LinearSolve.DefaultAlgorithmChoice.LUFactorization))
3737
_ff(copy(A), copy(b1))

test/hypretests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function test_interface(alg; kw...)
8787

8888
# Solve prob directly (without cache)
8989
y = solve(prob, alg; cache_kwargs..., Pl = HYPRE.BoomerAMG)
90-
@test A * to_array(y.u)b atol=atol rtol=rtol
90+
@test A*to_array(y.u)b atol=atol rtol=rtol
9191
@test y.iters > 0
9292
@test y.resid < rtol
9393

@@ -99,7 +99,7 @@ function test_interface(alg; kw...)
9999
cache = y.cache
100100
@test cache.isfresh == cache.cacheval.isfresh_A ==
101101
cache.cacheval.isfresh_b == cache.cacheval.isfresh_u == false
102-
@test A * to_array(y.u)b atol=atol rtol=rtol
102+
@test A*to_array(y.u)b atol=atol rtol=rtol
103103

104104
# Update A
105105
cache.A = A
@@ -109,7 +109,7 @@ function test_interface(alg; kw...)
109109
cache = y.cache
110110
@test cache.isfresh == cache.cacheval.isfresh_A ==
111111
cache.cacheval.isfresh_b == cache.cacheval.isfresh_u == false
112-
@test A * to_array(y.u)b atol=atol rtol=rtol
112+
@test A*to_array(y.u)b atol=atol rtol=rtol
113113

114114
# Update b
115115
b2 = 2 * to_array(b)
@@ -123,7 +123,7 @@ function test_interface(alg; kw...)
123123
cache = y.cache
124124
@test cache.isfresh == cache.cacheval.isfresh_A ==
125125
cache.cacheval.isfresh_b == cache.cacheval.isfresh_u == false
126-
@test A * to_array(y.u)to_array(b2) atol=atol rtol=rtol
126+
@test A*to_array(y.u)to_array(b2) atol=atol rtol=rtol
127127
end
128128
return
129129
end

test/nopre/enzyme.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ b1 = rand(n);
3333
db1 = zeros(n);
3434

3535
_ff = (x,
36-
y) -> f(x,
36+
y) -> f(x,
3737
y;
3838
alg = LinearSolve.DefaultLinearSolver(LinearSolve.DefaultAlgorithmChoice.LUFactorization))
3939
_ff(copy(A), copy(b1))
4040

4141
Enzyme.autodiff(Reverse,
4242
(x,
43-
y) -> f(x,
43+
y) -> f(x,
4444
y;
4545
alg = LinearSolve.DefaultLinearSolver(LinearSolve.DefaultAlgorithmChoice.LUFactorization)),
4646
Duplicated(copy(A), dA),

0 commit comments

Comments
 (0)