From ab01cd4580c9639514a2ad3df4596d8187828d9c Mon Sep 17 00:00:00 2001 From: Michael Kraus Date: Thu, 12 Dec 2024 10:58:39 +0100 Subject: [PATCH] Minor fixes and cleanup in SPARK integrators. --- src/spark/integrators_hpark.jl | 2 +- src/spark/integrators_hspark.jl | 2 +- src/spark/integrators_hspark_primary.jl | 2 +- src/spark/integrators_hspark_secondary.jl | 2 +- src/spark/integrators_spark.jl | 2 +- src/spark/integrators_vpark.jl | 2 +- src/spark/integrators_vspark.jl | 2 +- src/spark/integrators_vspark_primary.jl | 2 +- src/spark/integrators_vspark_secondary.jl | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/spark/integrators_hpark.jl b/src/spark/integrators_hpark.jl index 1d0a9ff6..f7833a35 100644 --- a/src/spark/integrators_hpark.jl +++ b/src/spark/integrators_hpark.jl @@ -9,7 +9,7 @@ end tableau(method::HPARK) = method.tableau -solversize(problem::Union{PDAEProblem,HDAEProblem}, method::HPARK) = +solversize(problem::AbstractProblemPDAE, method::HPARK) = 2 * ndims(problem) * nstages(method) + 3 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_hspark.jl b/src/spark/integrators_hspark.jl index 07a31fa6..ff70041b 100644 --- a/src/spark/integrators_hspark.jl +++ b/src/spark/integrators_hspark.jl @@ -9,7 +9,7 @@ HSPARK(method::SPARKMethod) = HSPARK(tableau(method)) tableau(method::HSPARK) = method.tableau -solversize(problem::Union{PDAEProblem,HDAEProblem}, method::Union{HSPARK,SPARKMethod}) = +solversize(problem::AbstractProblemPDAE, method::Union{HSPARK,SPARKMethod}) = 2 * ndims(problem) * nstages(method) + 3 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_hspark_primary.jl b/src/spark/integrators_hspark_primary.jl index 10345529..b7116355 100644 --- a/src/spark/integrators_hspark_primary.jl +++ b/src/spark/integrators_hspark_primary.jl @@ -7,7 +7,7 @@ end tableau(method::HSPARKprimary) = method.tableau -solversize(problem::Union{PDAEProblem,HDAEProblem}, method::HSPARKprimary) = +solversize(problem::AbstractProblemPDAE, method::HSPARKprimary) = 2 * ndims(problem) * nstages(method) + 3 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_hspark_secondary.jl b/src/spark/integrators_hspark_secondary.jl index 5420adf4..13bd737a 100644 --- a/src/spark/integrators_hspark_secondary.jl +++ b/src/spark/integrators_hspark_secondary.jl @@ -42,7 +42,7 @@ pstages(method::HSPARKsecondary) = method.r hasnullvector(method::HSPARKsecondary{DT,Nothing}) where {DT} = false hasnullvector(method::HSPARKsecondary{DT,<:AbstractVector}) where {DT} = true -solversize(problem::HDAEProblem, method::HSPARKsecondary) = +solversize(problem::AbstractProblemPDAE, method::HSPARKsecondary) = 2 * ndims(problem) * nstages(method) + 4 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_spark.jl b/src/spark/integrators_spark.jl index 51c6850c..8e834cfa 100644 --- a/src/spark/integrators_spark.jl +++ b/src/spark/integrators_spark.jl @@ -27,7 +27,7 @@ end tableau(method::SPARKMethod) = method.tableau -solversize(problem::Union{IDAEProblem,LDAEProblem}, method::SPARKMethod) = +solversize(problem::AbstractProblemIDAE, method::SPARKMethod) = 2 * ndims(problem) * nstages(method) + 3 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_vpark.jl b/src/spark/integrators_vpark.jl index 484056cd..44db3128 100644 --- a/src/spark/integrators_vpark.jl +++ b/src/spark/integrators_vpark.jl @@ -8,7 +8,7 @@ end tableau(method::VPARK) = method.tableau -solversize(problem::Union{IDAEProblem,LDAEProblem}, method::VPARK) = +solversize(problem::AbstractProblemIDAE, method::VPARK) = 3 * ndims(problem) * nstages(method) + 3 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_vspark.jl b/src/spark/integrators_vspark.jl index 29d8722b..ae8f223a 100644 --- a/src/spark/integrators_vspark.jl +++ b/src/spark/integrators_vspark.jl @@ -9,7 +9,7 @@ VSPARK(method::SPARKMethod) = VSPARK(tableau(method)) tableau(method::VSPARK) = method.tableau -solversize(problem::Union{IDAEProblem,LDAEProblem}, method::VSPARK) = +solversize(problem::AbstractProblemIDAE, method::VSPARK) = 3 * ndims(problem) * nstages(method) + 3 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_vspark_primary.jl b/src/spark/integrators_vspark_primary.jl index 8c0eccbf..9b0f5651 100644 --- a/src/spark/integrators_vspark_primary.jl +++ b/src/spark/integrators_vspark_primary.jl @@ -78,7 +78,7 @@ end tableau(method::VSPARKprimary) = method.tableau -solversize(problem::Union{IDAEProblem,LDAEProblem}, method::VSPARKprimary) = +solversize(problem::AbstractProblemIDAE, method::VSPARKprimary) = 2 * ndims(problem) * nstages(method) + 2 * ndims(problem) * pstages(method) diff --git a/src/spark/integrators_vspark_secondary.jl b/src/spark/integrators_vspark_secondary.jl index 9da0871b..28d27ca6 100644 --- a/src/spark/integrators_vspark_secondary.jl +++ b/src/spark/integrators_vspark_secondary.jl @@ -42,7 +42,7 @@ pstages(method::VSPARKsecondary) = method.r hasnullvector(method::VSPARKsecondary{DT,Nothing}) where {DT} = false hasnullvector(method::VSPARKsecondary{DT,<:AbstractVector}) where {DT} = true -solversize(problem::Union{IDAEProblem,LDAEProblem}, method::VSPARKsecondary) = +solversize(problem::AbstractProblemIDAE, method::VSPARKsecondary) = 4 * ndims(problem) * pstages(method)