From d8e5419794a30546b73a3842d54610d45f12f9ee Mon Sep 17 00:00:00 2001 From: Ben Dudson Date: Fri, 17 Jul 2026 17:11:14 -0700 Subject: [PATCH 1/4] Options: ConvertContainer for Array/Matrix/Tensor NVCC doesn't accept `Array>` as `C` so treats ConvertContainer as partially specialized. This explicitly writes convertors for Array, Matrix and Tensor containers. --- src/sys/options.cxx | 87 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 74 insertions(+), 13 deletions(-) diff --git a/src/sys/options.cxx b/src/sys/options.cxx index 85cfa7a49a..5f1f2fe91b 100644 --- a/src/sys/options.cxx +++ b/src/sys/options.cxx @@ -749,13 +749,11 @@ namespace { template struct ConvertContainer; -/// Visitor to convert an int, BoutReal or Array/Matrix/Tensor to the -/// appropriate container. Templated on both the container class C -/// and scalar type Scalar. -template