Skip to content

Commit 1fe4b8b

Browse files
committed
wip
1 parent d03f42b commit 1fe4b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codes/01_advDiffSolver/validate_grid_convergence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from program import Problem, nHalo, sIn
44

55
def run_simulation(nX, nY):
6-
input_content = f"{nX} {nY}\ngauss\ndiagonal 0.0\n0.1 50\n" # Kürzere Zeit für Stabilität
6+
input_content = f"{nX} {nY}\ngauss\ndiagonal 0.0\n0.1 400\n" # Kürzere Zeit für Stabilität
77
with open("temp_input.txt", "w") as f:
88
f.write(input_content)
99

@@ -12,7 +12,7 @@ def run_simulation(nX, nY):
1212
u = p.u[sIn, sIn]
1313
return np.mean(u)
1414

15-
grid_sizes = [32, 64, 128, 256] # 512 entfernt wegen numerischer Instabilität
15+
grid_sizes = [32, 64, 128, 256, 512]
1616
solutions = [run_simulation(n, n) for n in grid_sizes]
1717

1818
# Robustere Konvergenzprüfung

0 commit comments

Comments
 (0)