Skip to content

Commit

Permalink
tests: disable starting weights
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Jan 12, 2024
1 parent 16ec56c commit e86f306
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/test_generating_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,22 @@ def test_lubich_bdf_weights(

eoc = EOCRecorder(order=order)
a, b = 0.0, 1.0
s = order
s = 0

from math import gamma

for n in [64, 128, 256, 512, 1024]:
t = np.linspace(a, b, n)
h = t[1] - t[0]
w = lubich_bdf_weights(-alpha, order, n)
omega = np.fromiter(
lubich_bdf_starting_weights(w, s, -alpha, beta=1.0),
dtype=np.dtype((w.dtype, s)),
).reshape(-1, s)

if s > 0:
omega = np.fromiter(
lubich_bdf_starting_weights(w, s, -alpha, beta=1.0),
dtype=np.dtype((w.dtype, s)),
)
else:
omega = np.zeros_like(w)

int_ref = t**alpha / gamma(1 + alpha)
int_bdf = np.empty_like(int_ref)
Expand Down

0 comments on commit e86f306

Please sign in to comment.