Skip to content
Snippets Groups Projects
user avatar
martijn authored
Made a separate file for the constants with a nice variable declaration style common amongst physicists. Also factored out the derived simulationn parameters and renamed Main to SaltMarsh
66132e59
History

spatial-ecology-accelerate

Installation: Haskell & Accelerate

  1. Download the Haskell build tool stack

  2. Install LLVM-8, this is a dependency of Accelerate

    1. macOS: This can be obtained from via Homebrew:
    brew install llvm-hs/llvm/llvm-8
    1. debian/ubuntu: Available via apt:
    apt-get install llvm-8
  3. Finally, enter the following command:

    stack build

    This will download and build everything. It will take a while; go get a coffee and/or delicious pastry while you wait.

Installation: IHaskell/Jupyter (optional)

  1. Install Jupyter. The recommended method is to use the Anaconda Distribution, which includes Python and several commonly used packages. Make sure this version of python3 is the first one on your PATH.

  2. You may need to install a few extra dependencies (for example):

    1. macOS:
    brew install zeromq cairo pango
    1. debian/ubuntu:*
    apt-get install libzmq3-dev libcairo2-dev libpango1.0-dev
  3. Build the ihaskell tool

    stack install ihaskell
  4. Install IHaskell into Jupyter

    ihaskell install --stack

    You can now open Haskell-based notebooks through the usual jupyter notebook command.

Running

TODO