... | ... | @@ -18,6 +18,7 @@ git checkout swift-interface |
|
|
```
|
|
|
|
|
|
* Create a `Makefile.config` file from the template: `Makefile.config.template` and choose which build you would like e.g. compiler, MPI, OpenMP
|
|
|
* Example `Makefile.config` for COSMA7: [Makefile_VELOCIraptor_COSMA7.config](/uploads/a73ae325158c2a3ffab2f8712864b584/Makefile_VELOCIraptor_COSMA7.config)
|
|
|
* Make sure that the following flags are set:
|
|
|
|
|
|
```
|
... | ... | @@ -59,12 +60,12 @@ git checkout swift-velociraptor-C |
|
|
```
|
|
|
|
|
|
* Run `autogen.sh`
|
|
|
* Configure SWIFT so that the path to `libstf.a` is included in `LDFLAGS`, the standard C++ library and C++ interface to HDF5 are linked and that the OpenMP compiler flag is used:
|
|
|
* Configure SWIFT so that the path to `libstf.a` is known:
|
|
|
|
|
|
```
|
|
|
./configure CFLAGS=-qopenmp LDFLAGS=-L/cosma5/data/dp004/dc-will2/VELOCIraptor-STF/stf/lib/ LIBS="-lstf -lstdc++ -lhdf5_cpp" --with-metis
|
|
|
./configure --with-velociraptor=/cosma7/data/dp004/dc-will2/VELOCIraptor-STF/stf/lib/
|
|
|
```
|
|
|
Note: make sure that the same modules are loaded for the `GSL` and `HDF5` libraries that were used to build the VELOCIraptor library. Also note that the parallel version of HDF5 does notcome with the C++ interface.
|
|
|
Note: make sure that the same modules are loaded for the `GSL` and `HDF5` libraries that were used to build the VELOCIraptor library. Also note that the parallel version of HDF5 does not support the C++ interface.
|
|
|
|
|
|
4. Running SWIFT with VELOCIraptor
|
|
|
----------------------------------
|
... | ... | @@ -80,4 +81,17 @@ mpirun -np 1 ../swift_mpi -G -t 4 eagle_6.yml -x |
|
|
Note: To build on CRAY systems you may need to set the following environment variable to enable dynamic linking of libraries:
|
|
|
```
|
|
|
export CRAYPE_LINK_TYPE=dynamic
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
5. Running VELOCIraptor standalone
|
|
|
----------------------------------
|
|
|
* To build VELOCIraptor to run on its own follow Section 2 but set `SWIFTINTERACE="off"` in the `Makefile.config`
|
|
|
* Then to run VELOCIraptor you can use the following command:
|
|
|
|
|
|
```
|
|
|
/path/to/VELOCIraptor/bin/stf-gas -I 2 -i snap_0199 -C stf_input_6dfof_dmonly_sub.cfg -o ./halo/
|
|
|
```
|
|
|
|
|
|
where `-I` specifies the snapshot format (Gadget, HDF5, etc.), `-i` tells it the input file without the file extension, `-C` specifies the config file to use and `-o` specifies the base name of the output file.
|
|
|
|
|
|
* A more detailed description of running VELOCIraptor can be found here: https://velociraptor-stf.readthedocs.io/en/latest/ |
|
|
\ No newline at end of file |