Skip to content

Commit

Permalink
chore: error message in gauss adjoint
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaLGandhi committed Jun 21, 2024
1 parent b910d2c commit 62a5e4d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gauss_adjoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,7 @@ function _adjoint_sensitivities(sol, sensealg::GaussAdjoint, alg; t = nothing,

p = SymbolicIndexingInterface.parameter_values(sol)
if !isscimlstructure(p) && !isfunctor(p)
throw(error("`p` is not a SciMLStructure. This is required for adjoint sensitivity analysis. For more information,
see the documentation on SciMLStructures.jl for the definition of the SciMLStructures interface.
In particular, adjoint sensitivities only applies to `Tunable`."))
throw(SciMLStructuresCompatiblityError())

Check warning on line 546 in src/gauss_adjoint.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"Compatiblity" should be "Compatibility".
end

if p === nothing || p isa SciMLBase.NullParameters
Expand Down

0 comments on commit 62a5e4d

Please sign in to comment.