Skip to content

Commit 6ffe5ef

Browse files
committed
Fix 2D RBC
1 parent da29cf1 commit 6ffe5ef

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pySDC/implementations/problem_classes/RayleighBenard.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,8 @@ def eval_f(self, u, *args, **kwargs):
213213

214214
# start by computing derivatives
215215
if not hasattr(self, '_Dx_expanded') or not hasattr(self, '_Dz_expanded'):
216-
self._Dx_expanded = self._setup_operator(
217-
{'u': {'u': Dx}, 'v': {'v': Dx}, 'T': {'T': Dx}, 'p': {}}, diag=True
218-
)
219-
self._Dz_expanded = self._setup_operator(
220-
{'u': {'u': Dz}, 'v': {'v': Dz}, 'T': {'T': Dz}, 'p': {}}, diag=True
221-
)
216+
self._Dx_expanded = self._setup_operator({'u': {'u': Dx}, 'v': {'v': Dx}, 'T': {'T': Dx}, 'p': {}})
217+
self._Dz_expanded = self._setup_operator({'u': {'u': Dz}, 'v': {'v': Dz}, 'T': {'T': Dz}, 'p': {}})
222218
Dx_u_hat = (self._Dx_expanded @ u_hat.flatten()).reshape(u_hat.shape)
223219
Dz_u_hat = (self._Dz_expanded @ u_hat.flatten()).reshape(u_hat.shape)
224220

0 commit comments

Comments
 (0)