Skip to content

Commit 42b2178

Browse files
author
Daniel Ruprecht
committed
now checking in test if Lobatto nodes are used to skip those that need a fix before passing
1 parent b017cea commit 42b2178

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_imexsweeper.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def setUp(self):
6060
# **** TESTS ****
6161
# ***************
6262

63-
6463
#
6564
# Check that a level object can be instantiated
6665
#
@@ -120,9 +119,11 @@ def test_sweepequalmatrix(self):
120119
#
121120
# Make sure the implemented update formula matches the matrix update formula
122121
#
123-
@unittest.skip("Needs fix of issue #52 before passing")
124122
def test_updateformula(self):
125123

124+
if (self.swparams['collocation_class']==collclass.CollGaussLobatto):
125+
raise unittest.SkipTest("Needs fix of issue #52 before passing for Gauss Lobatto nodes")
126+
126127
step, level, problem, nnodes = self.setupLevelStepProblem()
127128
level.sweep.predict()
128129
u0full = np.array([ level.u[l].values.flatten() for l in range(1,nnodes+1) ])
@@ -206,8 +207,11 @@ def test_manysweepsequalmatrix(self):
206207
#
207208
# Make sure that update function for K sweeps computed from K-sweep matrix gives same result as K sweeps in node-to-node form plus compute_end_point
208209
#
209-
@unittest.skip("Needs fix of issue #52 before passing")
210210
def test_maysweepupdate(self):
211+
212+
if (self.swparams['collocation_class']==collclass.CollGaussLobatto):
213+
raise unittest.SkipTest("Needs fix of issue #52 before passing for Gauss Lobatto nodes")
214+
211215
step, level, problem, nnodes = self.setupLevelStepProblem()
212216
step.levels[0].sweep.predict()
213217
u0full = np.array([ level.u[l].values.flatten() for l in range(1,nnodes+1) ])

0 commit comments

Comments
 (0)