Skip to content

Commit 36b2259

Browse files
authored
Merge pull request #3 from JETSCAPE/ip-glasma-docs
updated IP-Glasma instructions
2 parents c1a4f22 + 10e9bdb commit 36b2259

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

external_packages/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,35 @@ To run JetScape test with SMASH:
137137

138138
Currently the iSS sampler performs resonance decays after sampling.
139139
For reasonable physics with SMASH these decays should be switched off.
140+
141+
### Installing and Compiling X-SCAPE with IP-Glasma
142+
143+
The use of IP-Glasma with the current version of X-SCAPE is not fully integrated. A workaround is provided here and applies to using the **jetscape/base:stable** Docker image.
144+
145+
```
146+
cd ${JETSCAPE_DIR}/external_packages
147+
./get_ipglasma.sh
148+
```
149+
After the IP-Glasma package downloads, replace the file **${JETSCAPE_DIR}/external_packages/ipglasma/CMakeModules/FindFFTW.cmake** with this alternative FindFFTW.cmake found here:
150+
151+
[Alternative FindFFTW.cmake File](https://git.jinr.ru/nica/bmnroot/-/blob/9fb98e26eb3e27fe379d3a61bad5d1567665bd81/cmake/modules/FindFFTW.cmake)
152+
153+
Then create a file called fftw3.h in the **${JETSCAPE_DIR}/external_packages/ipglasma/src** folder that includes the contents of the file linked here:
154+
155+
[fftw3.h File](https://github.com/FFTW/fftw3/blob/master/api/fftw3.h)
156+
157+
Create a build folder and cd into it.
158+
```
159+
cd ${JETSCAPE_DIR}
160+
mkdir build
161+
cd build
162+
```
163+
164+
Include the fftw library paths as part of your cmake command:
165+
166+
```
167+
cmake .. -DCMAKE_CXX_STANDARD=14 -DUSE_ROOT=ON -DUSE_MUSIC=ON -DUSE_ISS=ON -DUSE_FREESTREAM=ON -DUSE_SMASH=ON -DUSE_IPGlasma=ON -DFFTW_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/libfftw3.so.3.5.8 -DFFTW_LIBRARY=/usr/lib/x86_64-linux-gnu/libfftw3.so.3.5.8
168+
169+
make -j4 # Builds using 4 cores; adapt as appropriate
170+
```
171+
If you're not compiling all the external modules, you don't have to turn them on.

0 commit comments

Comments
 (0)