From 69f104f0463a165a8963aaad9294f76217cf634d Mon Sep 17 00:00:00 2001 From: Liwei Ji Date: Fri, 14 Jun 2024 14:08:03 -0400 Subject: [PATCH] Docs: update README for frontier --- Docs/compile-notes/frontier/README.md | 39 ++++++++++++++++++--------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/Docs/compile-notes/frontier/README.md b/Docs/compile-notes/frontier/README.md index 3cde1cdc..0eb577cb 100644 --- a/Docs/compile-notes/frontier/README.md +++ b/Docs/compile-notes/frontier/README.md @@ -1,13 +1,22 @@ -# Compile on Frontier +# Compile CarpetX (Frontier) + +* Download CarpetX and SpacetimeX + + ```bash + curl -kLO https://raw.githubusercontent.com/gridaphobe/CRL/master/GetComponents + chmod a+x GetComponents + ./GetComponents --root Cactus --parallel --no-shallow https://raw.githubusercontent.com/lwJi/SpacetimeX/main/Docs/thornlist/spacetimex.th + ``` + +## The Short Way -## Compile CarpetX ### cce-17.0.0 * Load modules ```bash -source Load-Module-CarpetX-cce17.sh +source repos/SpacetimeX/Docs/compile-notes/frontier/Load-Module-CarpetX-cce17.sh ``` * Install AsterX @@ -20,14 +29,12 @@ gmake -j24 AsterX ``` - - ### cce-15.0.0 * Load modules ```bash -source Load-Module-CarpetX-cce15.sh +source repos/SpacetimeX/Docs/compile-notes/frontier/Load-Module-CarpetX-cce15.sh ``` * Install AsterX @@ -41,18 +48,26 @@ gmake -j24 AsterX +## The Long Way + +### Compile AMReX + +* Clone `amrex` + +```bash +git clone https://github.com/AMReX-Codes/amrex.git +``` -## Compile AMReX +* Install `amrex` to `$HOME/local/amrex-24.06` ```bash cd amrex mkdir build cd build -source Load-Module-AMReX.sh -source Export-AMReX.sh -source Compile-AMReX.sh +source repos/SpacetimeX/Docs/compile-notes/frontier/amrex/Load-Module-AMReX.sh +source repos/SpacetimeX/Docs/compile-notes/frontier/amrex/Export-AMReX.sh +source repos/SpacetimeX/Docs/compile-notes/frontier/amrex/Compile-AMReX.sh -make -j8 install -make test_install +make -j24 install ```