Skip to content

Commit 6069797

Browse files
committed
playing with twogrid
1 parent febd764 commit 6069797

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pySDC/playgrounds/Gander/two_grid.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141

4242
# %%
4343

44-
nIter = 100
45-
dK = 10
44+
nIter = 10
45+
dK = 5
4646

47-
def coarse(x, dK=dK):
47+
def coarse(x, dK=1):
4848
xK = x
4949
for k in range(dK):
5050
xK = RJ @ xK #+ RJ @ b
@@ -54,7 +54,7 @@ def coarse(x, dK=dK):
5454
def fine(x, dK=dK):
5555
xK = x
5656
for k in range(dK):
57-
xK = TG @ xK #+ PGS @ b
57+
xK = RJ @ xK #+ PGS @ b
5858
return xK
5959

6060
def initBlocks(x):
@@ -82,7 +82,7 @@ def initBlocks(x):
8282
uGk = coarse(uNum[k, l], dK=1)
8383
uGkp1 = coarse(uNum[k+1, l], dK=1)
8484

85-
uNum[k+1, l+1] = uF + 1*(uGkp1 - uGk)
85+
uNum[k+1, l+1] = uF + 0.25*(uGkp1 - uGk)
8686

8787

8888
for l in range(nB):

0 commit comments

Comments
 (0)