Skip to content
Snippets Groups Projects

Change clone to fetch

Merged Loic Hausammann requested to merge new_implementation into master
1 file
+ 17
4
Compare changes
  • Side-by-side
  • Inline
+ 17
4
before_script:
before_script:
# compile swift
- apt-get update -qq && apt-get install -y -qq build-essential libhdf5-serial-dev gfortran
- apt-get update -qq && apt-get install -y -qq hdf5-tools
- export LHOME=`pwd`
- locate h5cc
# Compile grackle
 
- mkdir grackle
 
- git clone https://github.com/grackle-project/grackle.git
 
- cd grackle
 
- ./configure
 
- cd src/clib
 
- sed -i 's/LOCAL_HDF5_INSTALL = \/usr\/local\/hdf5\/1.8.2s/LOCAL_HDF5_INSTALL = \/usr\/lib\/x86_64-linux-gnu\/hdf5\/serial\/lib/' Make.mach.linux-gnu
 
- sed -i 's/MACH_INSTALL_PREFIX = $(HOME)\/local/MACH_INSTALL_PREFIX = $(LHOME)\/grackle/' Make.mach.linux-gnu
 
- make machine-linux-gnu
 
- make && make install
 
- export GRACKLE_ROOT=$LHOME/grackle
 
- cd $LHOME
 
 
# compile swift
- git clone https://gitlab.cosma.dur.ac.uk/swift/swiftsim.git --single-branch --branch master
- git clone https://gitlab.cosma.dur.ac.uk/swift/swiftsim.git --single-branch --branch master
- cd swiftsim
- cd swiftsim
- ./autogen.sh
- ./autogen.sh
- ./configure --with-subgrid=GEAR
- ./configure --with-subgrid=GEAR --with-grackle=$GRACKLE_ROOT
- make -j 4
- make -j 4
test_build:
test_build:
Loading