217217 return nothing
218218end
219219
220+ # We use MPRKMutableCache as supertype for all MPRK scheme caches
221+ abstract type MPRKMutableCache <: OrdinaryDiffEqMutableCache end
222+ get_fsalfirstlast (cache:: MPRKMutableCache , rate_prototype) = (nothing , nothing )
223+
220224# ## MPE #####################################################################################
221225"""
222226 MPE([linsolve = ..., small_constant = ...])
321325 integrator. u = u
322326end
323327
324- struct MPECache{PType, uType, tabType, F} <: OrdinaryDiffEqMutableCache
328+ struct MPECache{PType, uType, tabType, F} <: MPRKMutableCache
325329 P:: PType
326330 D:: uType
327331 σ:: uType
@@ -330,7 +334,7 @@ struct MPECache{PType, uType, tabType, F} <: OrdinaryDiffEqMutableCache
330334 linsolve:: F
331335end
332336
333- struct MPEConservativeCache{PType, uType, tabType, F} <: OrdinaryDiffEqMutableCache
337+ struct MPEConservativeCache{PType, uType, tabType, F} <: MPRKMutableCache
334338 P:: PType
335339 σ:: uType
336340 tab:: tabType
618622 integrator. u = u
619623end
620624
621- struct MPRK22Cache{uType, PType, tabType, F} < :
622- OrdinaryDiffEqMutableCache
625+ struct MPRK22Cache{uType, PType, tabType, F} <: MPRKMutableCache
623626 tmp:: uType
624627 P:: PType
625628 P2:: PType
@@ -630,8 +633,7 @@ struct MPRK22Cache{uType, PType, tabType, F} <:
630633 linsolve:: F
631634end
632635
633- struct MPRK22ConservativeCache{uType, PType, tabType, F} < :
634- OrdinaryDiffEqMutableCache
636+ struct MPRK22ConservativeCache{uType, PType, tabType, F} <: MPRKMutableCache
635637 tmp:: uType
636638 P:: PType
637639 P2:: PType
@@ -1197,7 +1199,7 @@ end
11971199 integrator. u = u
11981200end
11991201
1200- struct MPRK43Cache{uType, PType, tabType, F} <: OrdinaryDiffEqMutableCache
1202+ struct MPRK43Cache{uType, PType, tabType, F} <: MPRKMutableCache
12011203 tmp:: uType
12021204 tmp2:: uType
12031205 P:: PType
@@ -1211,7 +1213,7 @@ struct MPRK43Cache{uType, PType, tabType, F} <: OrdinaryDiffEqMutableCache
12111213 linsolve:: F
12121214end
12131215
1214- struct MPRK43ConservativeCache{uType, PType, tabType, F} <: OrdinaryDiffEqMutableCache
1216+ struct MPRK43ConservativeCache{uType, PType, tabType, F} <: MPRKMutableCache
12151217 tmp:: uType
12161218 tmp2:: uType
12171219 P:: PType
0 commit comments