From 6af3b64b3961b2a2d3e7607f6317ad4a585db5c0 Mon Sep 17 00:00:00 2001 From: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com> Date: Sat, 6 Apr 2024 16:17:53 +0200 Subject: [PATCH] Use `p_prototype` also in `MPE` (#58) * use p_prototype also in MPE * set version to v0.1.4 --------- Co-authored-by: Hendrik Ranocha --- .gitignore | 3 +++ Project.toml | 2 +- src/mprk.jl | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0a43c997..b2a8de13 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,6 @@ docs/contributing.md # committed for packages, but should be committed for applications that require a static # environment. Manifest.toml + +run +run/* diff --git a/Project.toml b/Project.toml index f5a352eb..f155c267 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PositiveIntegrators" uuid = "d1b20bf0-b083-4985-a874-dc5121669aa5" authors = ["Stefan Kopecz, Hendrik Ranocha, and contributors"] -version = "0.1.4-pre" +version = "0.1.4" [deps] FastBroadcast = "7034ab61-46d4-4ed7-9d0f-46aef9175898" diff --git a/src/mprk.jl b/src/mprk.jl index 427af857..d7943f50 100644 --- a/src/mprk.jl +++ b/src/mprk.jl @@ -233,7 +233,7 @@ function alg_cache(alg::MPE, u, rate_prototype, ::Type{uEltypeNoUnits}, dt, reltol, p, calck, ::Val{true}) where {uEltypeNoUnits, uBottomEltypeNoUnits, tTypeNoUnits} tmp = zero(u) - P = zeros(eltype(u), length(u), length(u)) + P = p_prototype(u, f) linsolve_tmp = zero(u) weight = similar(u, uEltypeNoUnits)