Skip to content

Commit

Permalink
AMReX: Development
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Apr 17, 2023
1 parent 1258cd9 commit 6bca6cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/dependencies/AMReX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ set(pyAMReX_amrex_src ""

# Git fetcher
option(pyAMReX_amrex_internal "Download & build AMReX" ON)
set(pyAMReX_amrex_repo "https://github.com/Thierry992/amrex.git"
set(pyAMReX_amrex_repo "https://github.com/AMReX-Codes/amrex.git"
CACHE STRING
"Repository URI to pull and build AMReX from if(pyAMReX_amrex_internal)")
set(pyAMReX_amrex_branch "particle_soa_refactor"
set(pyAMReX_amrex_branch "6b294a5cd3e5c55b36c7d0afe2993501775eb42f"
CACHE STRING
"Repository branch for pyAMReX_amrex_repo if(pyAMReX_amrex_internal)")

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def build_extension(self, ext):
#'-DAMReX_PARTICLES_PRECISION=' + AMReX_PARTICLES_PRECISION,
## dependency control (developers & package managers)
"-DpyAMReX_amrex_internal=" + AMReX_internal,
"-DpyAMReX_amrex_repo=" + AMReX_repo,
"-DpyAMReX_pybind11_internal=" + pybind11_internal,
# PEP-440 conformant version from package
"-DpyAMReX_VERSION_INFO=" + self.distribution.get_version(),
Expand All @@ -123,6 +122,8 @@ def build_extension(self, ext):
# or same dir as calling executable
]
# further dependency control (developers & package managers)
if AMReX_repo:
cmake_args.append("-DpyAMReX_amrex_repo=" + AMReX_repo)
if AMReX_branch:
cmake_args.append("-DpyAMReX_amrex_branch=" + AMReX_branch)
if AMReX_src:
Expand Down

0 comments on commit 6bca6cf

Please sign in to comment.