From ea9ba79d285e3e4f3770a947274dd8bb3a6a275a Mon Sep 17 00:00:00 2001
From: Stephan Hilb <stephan@ecshi.net>
Date: Mon, 7 Feb 2022 09:22:36 +0100
Subject: [PATCH] support true scalar functions

---
 src/function.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/function.jl b/src/function.jl
index 6e12354..19865f6 100644
--- a/src/function.jl
+++ b/src/function.jl
@@ -389,7 +389,7 @@ vtk_append!(vtkfile, f::FeFunction, ::DP1) =
 
 function save_csv(path, f::FeFunction)
     f.space.element::P1
-    f.space.size == (1,) ||
+    prod(f.space.size) == 1 ||
 	throw(ArgumentError("non-scalar functions unsupported"))
     mesh = f.space.mesh
     df = DataFrame()
-- 
GitLab