Skip to content

Commit abaf747

Browse files
committed
address comments and add compat for FastBroadcast
1 parent 7390f71 commit abaf747

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ConcreteStructs = "0.2"
4343
DiffEqBase = "6.130"
4444
EnumX = "1"
4545
Enzyme = "0.11"
46+
FastBroadcast = "0.1.9, 0.2"
4647
FastLevenbergMarquardt = "0.1"
4748
FiniteDiff = "2"
4849
ForwardDiff = "0.10.3"

src/NonlinearSolve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import PrecompileTools
99

1010
PrecompileTools.@recompile_invalidations begin
1111
using DiffEqBase, LinearAlgebra, LinearSolve, SparseArrays, SparseDiffTools
12-
using FastBroadcast: @.., True, False
12+
using FastBroadcast: @..
1313
import ArrayInterface: restructure
1414

1515
import ADTypes: AbstractFiniteDifferencesMode

src/pseudotransient.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ function perform_step!(cache::PseudoTransientCache{false})
167167
if linsolve === nothing
168168
cache.du = fu1 / cache.J
169169
else
170-
linres = dolinsolve(alg.precs, linsolve; A = cache.J,
171-
b = _vec(fu1),
172-
linu = _vec(cache.du), p, reltol = cache.abstol)
170+
linres = dolinsolve(alg.precs, linsolve; A = cache.J,b = _vec(fu1),linu = _vec(cache.du), p, reltol = cache.abstol)
173171
cache.linsolve = linres.cache
174172
end
175173
cache.u = @. u - cache.du # `u` might not support mutation

0 commit comments

Comments
 (0)