Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AMReX_SPACEDIM flag to CMake configure step #142

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading