Loading README.md +37 −7 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ To build the full SCALE-public toolset, it's recommended to install with `spack` There are two ways to build the AMPX toolset: with `spack` or without `spack`. Either way, start by cloning the repository: ```console cd ~/ git clone https://code.ornl.gov/scale/code/scale-public.git ``` Loading @@ -42,17 +43,31 @@ Both the `spack` and non-`spack` builds require Trilinos. When building without <details> <summary>Build Trilinos</summary> From your home directory: ``` git clone https://github.com/trilinos/Trilinos.git mkdir build_trilinos cd build_trilinos <launch configuration script for Trilinos below> cd Trilinos mkdir build mkdir myscript <make file below in "myscript", call it "configure.sh"> chmod 755 myscript/configure.sh cd build ../myscript/configure.sh ../ make -j 4 install cd .. ``` Configuration script for Trilinos: ``` #!/bin/bash -x INSTALL_PATH=${PWD}/install #remove existing CMakeCache if it exists if [ -e CMakeCache.txt ] ; then rm -v CMakeCache.txt rm -fr CMakeFiles fi cmake \ -D CMAKE_Fortran_FLAGS="-fallow-argument-mismatch -fallow-invalid-boz" \ -D CMAKE_INSTALL_PREFIX:FILEPATH=${INSTALL_PATH} \ Loading @@ -78,14 +93,27 @@ $* Once Trilinos is built, we can build SCALE (assuming you have the other dependencies required): ``` cd ~/scale-public mkdir build mkdir myscript <make file below in "myscript", call it "configure.sh"> chmod 755 myscript/configure.sh cd build <launch configuration script for SCALE below> ../myscript/configure.sh ../ make -j 4 install ``` Configuration script for AMPX: ``` #!/bin/bash -x INSTALL_PATH=${PWD}/install #remove existing CMakeCache if it exists if [ -e CMakeCache.txt ] ; then rm -v CMakeCache.txt rm -fr CMakeFiles fi cmake \ -DCMAKE_PREFIX_PATH=/path/to/trilinos/installation \ -DSCALE_USE_MCNP=OFF \ Loading Loading @@ -237,10 +265,12 @@ cmake \ $* ``` Then make and install: Then configure, make, and install: ```console ninja -j16 cd build ../myscript/configure-ampx.sh ../ ninja -j16 install ``` </details> Loading Loading
README.md +37 −7 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ To build the full SCALE-public toolset, it's recommended to install with `spack` There are two ways to build the AMPX toolset: with `spack` or without `spack`. Either way, start by cloning the repository: ```console cd ~/ git clone https://code.ornl.gov/scale/code/scale-public.git ``` Loading @@ -42,17 +43,31 @@ Both the `spack` and non-`spack` builds require Trilinos. When building without <details> <summary>Build Trilinos</summary> From your home directory: ``` git clone https://github.com/trilinos/Trilinos.git mkdir build_trilinos cd build_trilinos <launch configuration script for Trilinos below> cd Trilinos mkdir build mkdir myscript <make file below in "myscript", call it "configure.sh"> chmod 755 myscript/configure.sh cd build ../myscript/configure.sh ../ make -j 4 install cd .. ``` Configuration script for Trilinos: ``` #!/bin/bash -x INSTALL_PATH=${PWD}/install #remove existing CMakeCache if it exists if [ -e CMakeCache.txt ] ; then rm -v CMakeCache.txt rm -fr CMakeFiles fi cmake \ -D CMAKE_Fortran_FLAGS="-fallow-argument-mismatch -fallow-invalid-boz" \ -D CMAKE_INSTALL_PREFIX:FILEPATH=${INSTALL_PATH} \ Loading @@ -78,14 +93,27 @@ $* Once Trilinos is built, we can build SCALE (assuming you have the other dependencies required): ``` cd ~/scale-public mkdir build mkdir myscript <make file below in "myscript", call it "configure.sh"> chmod 755 myscript/configure.sh cd build <launch configuration script for SCALE below> ../myscript/configure.sh ../ make -j 4 install ``` Configuration script for AMPX: ``` #!/bin/bash -x INSTALL_PATH=${PWD}/install #remove existing CMakeCache if it exists if [ -e CMakeCache.txt ] ; then rm -v CMakeCache.txt rm -fr CMakeFiles fi cmake \ -DCMAKE_PREFIX_PATH=/path/to/trilinos/installation \ -DSCALE_USE_MCNP=OFF \ Loading Loading @@ -237,10 +265,12 @@ cmake \ $* ``` Then make and install: Then configure, make, and install: ```console ninja -j16 cd build ../myscript/configure-ampx.sh ../ ninja -j16 install ``` </details> Loading