Commit 9a8cac60 authored by gsell's avatar gsell
Browse files

Update README.md

parent c1d243d7
......@@ -30,10 +30,12 @@ Instructions to build [`Pelegant`](https://ops.aps.anl.gov/publish/Pelegant_manu
### Initialize environment
```
SDDS_VERSION=5.1
ELEGANT_VERSION=2021.4.0
ELEGANT_RELEASE=-1
DOWNLOAD_DIR="/opt/psi/var/distfiles/elegant"
```
With OpenMPI not optimized for Merlin/SLURM:
```
module load gcc/10.3.0 gsl/2.7 lapack/3.10.0 openmpi/4.0.5
......@@ -45,11 +47,12 @@ module load gcc/10.3.0 gsl/2.7 lapack/3.10.0 openmpi/4.0.5-1_slurm
USE_FLAGS="_slurm"
```
PREFIX="${PMODULES_ROOT}/MPI/elegant/${ELEGANT_VERSION}${USE_FLAGS}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}"
```
PREFIX="${PMODULES_ROOT}/MPI/elegant/${ELEGANT_VERSION}${ELEGANT_RELEASE}${USE_FLAGS}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}"
```
### Setup Environment
```
export EPICS_BASE="${PREFIX}/epics/base"
export HOST_ARCH=linux-x86_64
export EPICS_HOST_ARCH=linux-x86_64
......@@ -83,11 +86,13 @@ tar xvf "${DOWNLOAD_DIR}/elegant.${ELEGANT_VERSION}.tar.gz"
### Configure EPICS base and OAG applications
```
cd epics/base
cd "${PREFIX}/epics/base"
make "${ARGS[@]}"
cd "${PREFIX}/oag/apps/configure"
sed -i "s/clean::/clean:/" RULES_PYTHON
make "${ARGS[@]}"
cd "${PREFIX}/oag/apps/src/physics"
make "${ARGS[@]}"
```
### Compile SDDS 5.1
......@@ -214,6 +219,7 @@ make "${ARGS[@]}" MPI=1 -C SDDSlib
```
cd "${PREFIX}/oag/apps/src/elegant"
make "${ARGS[@]}" STATIC_BUILD=NO
make "${ARGS[@]}" -C elegantTools
```
### Compile Pelegant
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment