Skip to content

Commit 9dc44a1

Browse files
author
Nathan Goldbaum
committed
make the multigrid simple test script save a visualization by default
1 parent 061ef3c commit 9dc44a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/multigrid/mg_test_simple.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def test_poisson_dirichlet(N, store_bench=False, comp_bench=False,
8484
plt.xlabel("x")
8585
plt.ylabel("y")
8686

87+
print("Saving figure to mg_test.png")
88+
8789
plt.savefig("mg_test.png")
8890

8991
# store the output for later comparison
@@ -114,4 +116,4 @@ def test_poisson_dirichlet(N, store_bench=False, comp_bench=False,
114116

115117

116118
if __name__ == "__main__":
117-
test_poisson_dirichlet(256, comp_bench=True)
119+
test_poisson_dirichlet(256, comp_bench=True, make_plot=True)

0 commit comments

Comments
 (0)