Skip to content

Commit

Permalink
Merge pull request #142 from BenWibking/add_amrex_spacedim_cmake
Browse files Browse the repository at this point in the history
Add AMReX_SPACEDIM flag to CMake configure step
  • Loading branch information
zingale authored Jun 19, 2024
2 parents bc0440a + dc3b0fa commit 26425d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 26425d9

Please sign in to comment.