From d8e65c4d9a442841f746a37e6ea936037b2606fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Sun, 26 Feb 2023 00:31:56 +0100 Subject: [PATCH] Update ForwardDiff after specializing on function paramerter for jacobian! has been fixed in https://github.com/JuliaDiff/ForwardDiff.jl/pull/615 --- Project.toml | 4 ++-- src/vfvm_physics.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index fa3a815ba..93ab36eba 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "VoronoiFVM" uuid = "82b139dc-5afc-11e9-35da-9b9bdfd336f3" authors = ["Juergen Fuhrmann "] -version = "1.1.0" +version = "1.1.1" [deps] BandedMatrices = "aae01518-5342-5314-be14-df237901396f" @@ -35,7 +35,7 @@ DiffResults = "1" DocStringExtensions = "0.8,0.9" ExtendableGrids = "0.9.16" ExtendableSparse = "1.0.1" -ForwardDiff = "^0.10" +ForwardDiff = "0.10.35" GridVisualize = "0.5.2,0.6.1,1" JLD2 = "0.4.29" LinearSolve = "1.37" diff --git a/src/vfvm_physics.jl b/src/vfvm_physics.jl index 0a854366d..38db0476b 100644 --- a/src/vfvm_physics.jl +++ b/src/vfvm_physics.jl @@ -471,7 +471,7 @@ $(TYPEDSIGNATURES) Call function in evaluator, store result and jacobian in predefined memory. """ function evaluate!(e::ResJacEvaluator, u) - e.isnontrivial ? ForwardDiff.vector_mode_jacobian!(e.result, e.fwrap, e.y, u, e.config) : nothing + e.isnontrivial ? ForwardDiff.jacobian!(e.result, e.fwrap, e.y, u, e.config) : nothing nothing end