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