Skip to content

Commit bf6854f

Browse files
author
Daniel Ruprecht
committed
matrices QE, QI and Q provided by new function get_sweeper_mats in imex_1st_order sweper class
1 parent ea319ec commit bf6854f

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pySDC/sweeper_classes/imex_1st_order.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ def update_nodes(self):
129129

130130
return None
131131

132-
133132
def compute_end_point(self):
134133
"""
135134
Compute u at the right point of the interval
@@ -155,3 +154,9 @@ def compute_end_point(self):
155154
L.uend += L.tau[-1]
156155

157156
return None
157+
158+
def get_sweeper_mats(self):
159+
QE = self.QE[1:,1:]
160+
QI = self.QI[1:,1:]
161+
Q = self.coll.Qmat[1:,1:]
162+
return QE, QI, Q

tests/test_imexsweeper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ def setupLevelStepProblem(self):
3333
return step, level, problem, nnodes
3434

3535
def setupQMatrices(self, level):
36-
QE = level.sweep.QE[1:,1:]
37-
QI = level.sweep.QI[1:,1:]
38-
Q = level.sweep.coll.Qmat[1:,1:]
36+
QE, QI, Q = level.sweep.get_sweeper_mats()
3937
return QE, QI, Q
4038

4139
def setupSweeperMatrices(self, step, level, problem):

0 commit comments

Comments
 (0)