Supporing an incremental build of the ICON model
The ICON model is currently build each time from scratch in a temporary directory. If the model is already built, building could be skipped by setting the build job to successful. A few changes are implemented now:
- The default is that the model is not build, if the ICON binary exists.
- If it does not exist, a new build is run. The ICON source code will be stored and only updated to the latest version matching the desired branch and already compiled parts of the code will also be stored. This allows for an incremental build, saving a lot of time during model development.
To alter this behavior, two switches have been implemented (set to True
or False
):
-
ENSURE_BUILD
: the model will be build, even if a binary exists (this is useful for model code development, where regular updates and re-builds of the model are necessary; here the incremental build makes building fast) -
REBUILD_FROM_SCRATCH
: build the model completely from scratch, without using existing (temporary) files