Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
26c1d7b4
Commit
26c1d7b4
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Documented the better way to compile VELOCIraptor in the RTD
parent
70f62467
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/RTD/source/VELOCIraptorInterface/stfalone.rst
+8
-5
8 additions, 5 deletions
doc/RTD/source/VELOCIraptorInterface/stfalone.rst
doc/RTD/source/VELOCIraptorInterface/stfwithswift.rst
+11
-7
11 additions, 7 deletions
doc/RTD/source/VELOCIraptorInterface/stfwithswift.rst
with
19 additions
and
12 deletions
doc/RTD/source/VELOCIraptorInterface/stfalone.rst
+
8
−
5
View file @
26c1d7b4
...
...
@@ -31,8 +31,11 @@ by doing::
Again we need to configure VELOCIraptor::
cmake . -DVR_USE_
GAS=ON
cmake . -DVR_USE_
HYDRO=ON -DCMAKE_BUILD_TYPE=Release
The first parameter activates the processing of gas, stars and black holes. It
can be omitted for simulations evolving only dark matter.
In this case, we do not need the SWIFT interface, therefore we can drop
this option (disabled by default).
...
...
@@ -42,14 +45,14 @@ Compiling VELOCIraptor
Compiling goes completely different as compared to the on the fly halo finder
configuration with SWIFT. In this case we can compile the code as::
make
make
-j
After this an executable is created (``VELOCIraptor-stf/stf``).
Running VELOCIraptor on a Snapshot
----------------------------------
After the code
is
compile the next step is using VELOCIraptor on a single
After the code
has been
compile
d
the next step is using VELOCIraptor on a single
snapshot of a simulation. The code has several options which can be used, which
can be displayed by running a terminal command of an invalid letter like::
...
...
@@ -74,6 +77,6 @@ which gives the information about the usage of the command::
===== EXTRA OPTIONS REQUIRED FOR RAMSES INPUT ======
-t <ramses snapnumber>
After this we can run VELOCIraptor on a snapshot as::
After this we can run VELOCIraptor on a snapshot
called ``input.hdf5``
as::
./stf -i input -o output -C configfile.txt
./stf
-I 2
-i input -o output -C configfile.txt
This diff is collapsed.
Click to expand it.
doc/RTD/source/VELOCIraptorInterface/stfwithswift.rst
+
11
−
7
View file @
26c1d7b4
...
...
@@ -22,15 +22,19 @@ VELOCIraptor. This can be done by cloning the repository on GitHub_::
git clone https://github.com/pelahi/VELOCIraptor-STF
Currently the best version that works with SWIFT is the master
of VELOCIraptor, to get this branch use::
The SWIFT interface is in the master branch of VELOCIraptor so nothing is more
is needed besides fetching the latest version of the `NBodyLib` that the code
relies upon::
cd VELOCIraptor-STF
git fetch
To get VELOCIraptor working with SWIFT simply use::
cmake . -DVR_USE_SWIFT_INTERFACE=ON -DCMAKE_CXX_FLAGS="-fPIC" -DVR_USE_GAS=ON
cmake . -DVR_USE_HYDRO=ON -DVR_USE_SWIFT_INTERFACE=ON -DCMAKE_CXX_FLAGS="-fPIC" -DCMAKE_BUILD_TYPE=Release
The first parameter activates the processing of gas, stars and black holes. It
can be omitted for simulations evolving only dark matter.
If you wish to run swift without MPI, you will need to add ``-DVR_MPI=OFF``.
...
...
@@ -40,7 +44,7 @@ Compiling VELOCIraptor
After we downloaded the files and made a configuration file we can compile
VELOCIraptor as follows::
make -j
4
make -j
After the compilation of your code, you will find a static library ``libvelociraptor.a``,
that is required to run SWIFT with VELOCIraptor.
...
...
@@ -68,8 +72,8 @@ we first need to add several lines to the yaml file of our simulation
.. code:: YAML
StructureFinding:
config_file_name:
stf_input_6dfof_dmonly_sub
.cfg
basename:
./stf
config_file_name:
vrconfig_3dfof_subhalos_SO_hydro
.cfg
basename:
haloes
scale_factor_first: 0.02
delta_time: 1.02
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment