We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d5529e commit 101097eCopy full SHA for 101097e
src/systems/abstractsystem.jl
@@ -899,27 +899,6 @@ end
899
900
has_equations(::AbstractSystem) = true
901
902
-const EMPTY_TGRAD = Vector{Num}(undef, 0)
903
-const EMPTY_JAC = Matrix{Num}(undef, 0, 0)
904
-function invalidate_cache!(sys::AbstractSystem)
905
- if has_tgrad(sys)
906
- get_tgrad(sys)[] = EMPTY_TGRAD
907
- end
908
- if has_jac(sys)
909
- get_jac(sys)[] = EMPTY_JAC
910
911
- if has_ctrl_jac(sys)
912
- get_ctrl_jac(sys)[] = EMPTY_JAC
913
914
- if has_Wfact(sys)
915
- get_Wfact(sys)[] = EMPTY_JAC
916
917
- if has_Wfact_t(sys)
918
- get_Wfact_t(sys)[] = EMPTY_JAC
919
920
- return sys
921
-end
922
-
923
function Setfield.get(obj::AbstractSystem, ::Setfield.PropertyLens{field}) where {field}
924
getfield(obj, field)
925
end
0 commit comments