From 6749e3df0843e74c886f4833e9cc296c3c12d4a0 Mon Sep 17 00:00:00 2001 From: Giacomo Date: Fri, 22 Mar 2024 13:54:03 +0100 Subject: [PATCH] tests passed after code refactoring --- pySDC/projects/Monodomain/problem_classes/MonodomainODE.py | 1 - pySDC/projects/Monodomain/problem_classes/TestODE.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pySDC/projects/Monodomain/problem_classes/MonodomainODE.py b/pySDC/projects/Monodomain/problem_classes/MonodomainODE.py index f605564e1b..ff22af7f18 100644 --- a/pySDC/projects/Monodomain/problem_classes/MonodomainODE.py +++ b/pySDC/projects/Monodomain/problem_classes/MonodomainODE.py @@ -69,7 +69,6 @@ def init_exp_extruded(self, new_dim_shape): # ionic model with exponential terms and N is the number of dofs in the mesh. # The vector is further extruded to additional dimensions with shape new_dim_shape. return ((*new_dim_shape, len(self.rhs_exp_indeces), self.init[0][1]), self.init[1], self.init[2]) - # return ((*new_dim_shape, self.init[0][0], self.init[0][1]), self.init[1], self.init[2]) def write_solution(self, uh, t): # write solution to file, only the potential V=uh[0], not the ionic model variables diff --git a/pySDC/projects/Monodomain/problem_classes/TestODE.py b/pySDC/projects/Monodomain/problem_classes/TestODE.py index 961ffa2280..62d4bf01b6 100644 --- a/pySDC/projects/Monodomain/problem_classes/TestODE.py +++ b/pySDC/projects/Monodomain/problem_classes/TestODE.py @@ -47,6 +47,9 @@ def __init__(self, **problem_params): self.dtype_u = mesh self.dtype_f = mesh + def init_exp_extruded(self, new_dim_shape): + return ((*new_dim_shape, 1, self.init[0][1]), self.init[1], self.init[2]) + def initial_value(self): u0 = self.dtype_u(self.init, val=1.0)