From 9189cc2358caff196bd02225400f8cda0e5dcbe1 Mon Sep 17 00:00:00 2001
From: Alexandru Fikl <alexfikl@gmail.com>
Date: Tue, 14 Jul 2020 22:19:19 -0500
Subject: [PATCH] disable visualization in example

---
 examples/advection/surface.py      | 5 ++---
 examples/advection/var-velocity.py | 2 +-
 examples/advection/weak.py         | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/examples/advection/surface.py b/examples/advection/surface.py
index 424e100a..9fcadb43 100644
--- a/examples/advection/surface.py
+++ b/examples/advection/surface.py
@@ -18,9 +18,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 """
 
 import os
-import numpy as np
-import numpy.linalg as la
 
+import numpy as np
 import pyopencl as cl
 
 from meshmode.array_context import PyOpenCLArrayContext
@@ -89,7 +88,7 @@ class Plotter:
 # }}}
 
 
-def main(ctx_factory, dim=2, order=4, product_tag=None, visualize=True):
+def main(ctx_factory, dim=2, order=4, product_tag=None, visualize=False):
     cl_ctx = ctx_factory()
     queue = cl.CommandQueue(cl_ctx)
     actx = PyOpenCLArrayContext(queue)
diff --git a/examples/advection/var-velocity.py b/examples/advection/var-velocity.py
index 70235cee..cc2e62f0 100644
--- a/examples/advection/var-velocity.py
+++ b/examples/advection/var-velocity.py
@@ -90,7 +90,7 @@ class Plotter:
 # }}}
 
 
-def main(ctx_factory, dim=2, order=4, product_tag=None, visualize=True):
+def main(ctx_factory, dim=2, order=4, product_tag=None, visualize=False):
     cl_ctx = ctx_factory()
     queue = cl.CommandQueue(cl_ctx)
     actx = PyOpenCLArrayContext(queue)
diff --git a/examples/advection/weak.py b/examples/advection/weak.py
index b0692755..c2e36fb9 100644
--- a/examples/advection/weak.py
+++ b/examples/advection/weak.py
@@ -86,7 +86,7 @@ class Plotter:
 # }}}
 
 
-def main(ctx_factory, dim=2, order=4, visualize=True):
+def main(ctx_factory, dim=2, order=4, visualize=False):
     cl_ctx = ctx_factory()
     queue = cl.CommandQueue(cl_ctx)
     actx = PyOpenCLArrayContext(queue)
-- 
GitLab