From 983edfc2faa7d390031713fbf1f506598a99bc65 Mon Sep 17 00:00:00 2001
From: Matthias Diener <mdiener@illinois.edu>
Date: Fri, 18 Jun 2021 08:58:01 -0500
Subject: [PATCH] Ravel error on AK
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Co-authored-by: Andreas Klöckner <inform@tiker.net>
---
 arraycontext/impl/pytato.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arraycontext/impl/pytato.py b/arraycontext/impl/pytato.py
index fbb6851..9483686 100644
--- a/arraycontext/impl/pytato.py
+++ b/arraycontext/impl/pytato.py
@@ -158,11 +158,8 @@ class _PytatoFakeNumpyNamespace(BaseFakeNumpyNamespace):
         def _rec_ravel(a):
             if order in "FC":
                 return pt.reshape(a, (-1,), order=order)
-            elif order in "AK":
-                # memory layout is assumed to be "C"
-                return pt.reshape(a, (-1,), order="C")
             else:
-                raise ValueError("`order` can be one of 'F', 'C', 'A' or 'K'. "
+                raise ValueError("`order` can be one of 'F' or 'C'. "
                                  f"(got {order})")
 
         return rec_map_array_container(_rec_ravel, a)
-- 
GitLab