Skip to content

Installing and compiling

nabajour edited this page Jul 9, 2020 · 2 revisions

Alfrodull is a plugin for THOR, linked at the code level. It appears as a git submodule. That means it’s a separate git repository, that you can use like any git repository. But THOR has some info in it’s repository to:

  • download the module at the git revision it’s compatible with
  • makefile to compile the code

Download the code

With a fresh THOR download

If you haven’t downloaded THOR, you can download both at the same time

$ git clone -b dev --recurse-submodules https://github.com/exoclime/THOR.git 

Note: the -b dev downloads the dev branch, which is currently the only branch connected to Alfrodull.

Add to an existing THOR download

If you’re already using THOR and it’s in sync with exoclime, but you don’t have the Alfrodull module, you need to activate it and download it. Your THOR repository should already have an Alfrodull directory. Run the following commands in your THOR directory to download Alfrodull:

$ git submodule init
$ git submodule update

Alfrodull repository

Now, you have a repository that you can use like any git repository:

  • add remotes (to point to your own github clone, for example)
  • add branches

The only thing to be carefull of is that when you change something to the Alfrodull git repository, a “Alfrodull” change will appear in THOR. Committing this change tracks what version of Alfrodull is required by THOR. This is usually set by exoclime/THOR.

Compiling

The THOR Makefile checks the Alfrodull directory, and if it’s not empty, runs make in this directory, compiles Alfrodull code and activates the code in THOR that calls the two_streams_radiative_transfer class.