Skip to content

BLOM externals

Tomas Torsvik edited this page Aug 24, 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 the CVmix repository. This is done by including the line externals = Externals_BLOM.cfg in the [blom] section of the NorESM Externals.cfg file. The Externals_BLOM.cfg file should be available from the root folder in the BLOM/iHAMOCC 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 https://github.com/NorESMhub/BLOM.git
  • There are 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 that has been tested with BLOM/HAMOCC. However, managing CVMix through git submodule will usually be the preferential option.