I downloaded using git clone
module load git git clone git@gitlab.cosma.dur.ac.uk:swift/swiftsim.git
this creates a swiftsim directory
Information about building it in INSTALL.swift
load the follow modules (on COSMA4) this will be machine specific
module purge module load intel_comp/c4/2015 platform_mpi fftw gsl hdf5 cosma/2012 swift metis
... this supposed to work if you just module load swift
Built it without vectorisation (this is still in development)
!!!! important !!! need to edit src/const.h to adapt it to use the right type of external potential !!!
... this needs to be done more smoothly so that it just a matter of running the example
./autogen.sh ./configure --disable-vec CC=icc # use the intel compiler make
Now try one the examples .. examples/IsothermalPotential/GravityOnly
edit info into the README file as I go along
python makeIC.py 10000 1 # makes 10000 parcels on random orbits
you may want to edit the run time in isothermal.yml ... its currently rather long. ./run.sh
make the plots with
idl test.pro
(it takes a while)
... need to re-wrie this in python (for simplicity)
so now I've built SWIFT and tested it with some of the examples scripts. Can we new include hydroparticles? yes - Tom's already got an example. cp -r /gpfs/data/tt/Codes/Swift-git/swiftsim.July21/examples/IsothermalPotential//HydroStatic/ . and try it :) compare to rgb's attempt /gpfs/data/rgb/Swift/swiftsim/examples/IsothermalPotential/HydroStatic Stefan: GravityOnly works fine Trying Tom's example: Need to add timestep_mult to the yml file (set to be 0.03 in the GravityOnly example) Need to add Statistics:delta_time Got a segmentation fault when I ran it. Trying Richard's example: Seems to run fine