Skip to content

Commit 86dfb23

Browse files
Fix for Boussinesq (#440)
1 parent 083c764 commit 86dfb23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pySDC/implementations/problem_classes/Boussinesq_2D_FD_imex.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import numpy as np
22
from scipy.sparse.linalg import gmres
33

4-
from pySDC.core.Errors import ParameterError
54
from pySDC.core.Problem import ptype
65
from pySDC.implementations.datatype_classes.mesh import mesh, imex_mesh
76
from pySDC.implementations.problem_classes.boussinesq_helpers.build2DFDMatrix import get2DMesh
@@ -263,8 +262,8 @@ def eval_f(self, u, t):
263262
"""
264263

265264
f = self.dtype_f(self.init)
266-
f.impl = self.__eval_fimpl(u, t)
267-
f.expl = self.__eval_fexpl(u, t)
265+
f.impl[:] = self.__eval_fimpl(u, t)
266+
f.expl[:] = self.__eval_fexpl(u, t)
268267
return f
269268

270269
def u_exact(self, t):

0 commit comments

Comments
 (0)