We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent febd764 commit 6069797Copy full SHA for 6069797
pySDC/playgrounds/Gander/two_grid.py
@@ -41,10 +41,10 @@
41
42
# %%
43
44
-nIter = 100
45
-dK = 10
+nIter = 10
+dK = 5
46
47
-def coarse(x, dK=dK):
+def coarse(x, dK=1):
48
xK = x
49
for k in range(dK):
50
xK = RJ @ xK #+ RJ @ b
@@ -54,7 +54,7 @@ def coarse(x, dK=dK):
54
def fine(x, dK=dK):
55
56
57
- xK = TG @ xK #+ PGS @ b
+ xK = RJ @ xK #+ PGS @ b
58
return xK
59
60
def initBlocks(x):
@@ -82,7 +82,7 @@ def initBlocks(x):
82
uGk = coarse(uNum[k, l], dK=1)
83
uGkp1 = coarse(uNum[k+1, l], dK=1)
84
85
- uNum[k+1, l+1] = uF + 1*(uGkp1 - uGk)
+ uNum[k+1, l+1] = uF + 0.25*(uGkp1 - uGk)
86
87
88
for l in range(nB):
0 commit comments