Skip to content

BLOM externals

Tomas Torsvik edited this page Aug 23, 2022 · 9 revisions

BLOM externals and git submodules

There are 2 more or less automaic ways, in addition to cloning CVMix-src from github.

  1. If you build BLOM/iHAMOCC within the norESM build system, you need to make the "checkout_externals" script aware of CVmix repository. This is done by including the line "externals = Externals_BLOM.cfg" in the [blom] section of the externals file. The Externals_BLOM.cfg file should be available from the root folder in the BLOM repository, and points to the right version of cvmix.
[blom]
branch = master
protocol = git
repo_url = https://github.com/NorESMhub/BLOM
local_path = components/blom
externals = Externals_BLOM.cfg
required = True
  1. If you want to clone BLOM/iHAMOCC from github and include CVmix-src in the cloning process, you can run the command
git clone --recurse-submodules [git@github.com](mailto:git@github.com):NorESMhub/BLOM.git

There are a "git submodule" commands you can run to init/add/update/delete submodules, see "git --help submodule".

  1. Finally, you can always clone CVMix-src diretly from https://github.com/CVMix/CVMix-src but this will probably give you a newer version than the one tat has been tested with BLOM.