From 51d585f89948d691cf5a94a300db20d0b0426de0 Mon Sep 17 00:00:00 2001 From: Benjamin Wibking Date: Mon, 17 Jun 2024 11:17:03 +1000 Subject: [PATCH] add -DAMReX_SPACEDIM to CMake flags --- suite.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/suite.py b/suite.py index 892c987..2927f68 100644 --- a/suite.py +++ b/suite.py @@ -1133,7 +1133,8 @@ def apply_args(self): ####################################################### # CMake utilities # ####################################################### - def cmake_config( self, name, path, configOpts="", install = 0, env = None): + def cmake_config( self, name, path, configOpts="", install = 0, env = + None, test = None): "Generate CMake configuration" self.log.outdent() @@ -1179,6 +1180,9 @@ def cmake_config( self, name, path, configOpts="", install = 0, env = None): if name == 'AMReX': cmd += '-DAMReX_INSTALL=OFF' + if test.dim > 0: + cmd += '-DAMReX_SPACEDIM='+str(test.dim) + self.log.log(cmd) stdout, stderr, rc = test_util.run(cmd, outfile=coutfile, env=ENV) @@ -1269,7 +1273,7 @@ def build_test_cmake(self, test, opts="", outfile=None): path=self.source_dir, configOpts=self.amrex_cmake_opts + " " + self.source_cmake_opts + " " + - test.cmakeSetupOpts) + test.cmakeSetupOpts, test=test) self.source_build_dir = builddir # compile