From d4b7151af94f640f2a1446866e220a85680f8cdb Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 22 May 2021 16:58:25 -0500
Subject: [PATCH] Add arraycontext._acf for manual test debugging

---
 arraycontext/__init__.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arraycontext/__init__.py b/arraycontext/__init__.py
index 16dc273..83f1684 100644
--- a/arraycontext/__init__.py
+++ b/arraycontext/__init__.py
@@ -83,4 +83,14 @@ __all__ = (
         )
 
 
+def _acf():
+    """A tiny undocumented function to pass to tests that take an ``actx_factory``
+    argument when running them from the command line.
+    """
+    import pyopencl as cl
+
+    context = cl._csc()
+    queue = cl.CommandQueue(context)
+    return PyOpenCLArrayContext(queue)
+
 # vim: foldmethod=marker
-- 
GitLab