-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Algoa Bay Model
Here is the Dockerfile for compiling the Algoa Bay CROCO image: https://github.com/SAEON/somisana/blob/stable/models/algoa-bay-forecast/croco.Dockerfile
Some of the settings in param.h , cppdefs.h, and the launch script (run_croco.bash) should be configurable. To achieve this:
- The Dockerfile needs to be updated to accept build args
- Then after copying the
param.h,cppdefs.h, andrun_croco.bashfiles into the Docker build context (see these lines), those files need to be updated depending on what build args are passed (using string replacement).
What about if the defaults were suitable for local computer execution @GilesFearon? Then in production the docker build gets bespoke commands. I think these commands have to be passed at build time, as once the image is built it contains the compiled Fortran executable.
So far as I can remember from the CROCO workshop, there are two places to update when configuring how many cores to use (please check these @GilesFearon / @mattcarr03):
- https://github.com/SAEON/somisana/blob/stable/models/algoa-bay-forecast/croco/overwrites/param.h#L229
- https://github.com/SAEON/somisana/blob/stable/models/algoa-bay-forecast/croco/run-model/run_croco.bash#L15
Are there any other easily configurable params?
False Bay Model
Same as above, just in the False Bay folder