From 5b4ed3dc2f41f51cf64a01e95e4b900cc1f3aa0e Mon Sep 17 00:00:00 2001 From: Gaurav Arya Date: Mon, 27 Mar 2023 12:49:56 -0400 Subject: [PATCH] Replace uses of error debug message with a thrown error --- src/differentiation/jaches_products.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/differentiation/jaches_products.jl b/src/differentiation/jaches_products.jl index 511ec7de..eab3131d 100644 --- a/src/differentiation/jaches_products.jl +++ b/src/differentiation/jaches_products.jl @@ -239,7 +239,7 @@ function JacVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoFo (cache1, cache2), auto_jacvec, auto_jacvec! else - @error("Set autodiff to either AutoForwardDiff(), or AutoFiniteDiff()") + error("Set autodiff to either AutoForwardDiff(), or AutoFiniteDiff()") end outofplace = static_hasmethod(f, typeof((u,))) @@ -281,7 +281,7 @@ function HesVec(f, u::AbstractArray, p = nothing, t = nothing; autodiff = AutoFo (cache1, cache2), autoback_hesvec, autoback_hesvec! else - @error("Set autodiff to either AutoForwardDiff(), AutoZygote(), or AutoFiniteDiff()") + error("Set autodiff to either AutoForwardDiff(), AutoZygote(), or AutoFiniteDiff()") end outofplace = static_hasmethod(f, typeof((u,))) @@ -314,7 +314,7 @@ function HesVecGrad(f, u::AbstractArray, p = nothing, t = nothing; autodiff = Au (cache1, cache2), auto_hesvecgrad, auto_hesvecgrad! else - @error("Set autodiff to either AutoForwardDiff(), or AutoFiniteDiff()") + error("Set autodiff to either AutoForwardDiff(), or AutoFiniteDiff()") end outofplace = static_hasmethod(f, typeof((u,)))