How do i include an optional site fcm-make.cfg file?

hi there,

i know how to include an optional site config file of the form…

app/foo/opt/rose-app-mysite.conf

… but i would like to include an optional site fcm-make.cfg file, that is…

app/foo/file/fcm-make-mysite.cfg

i need to be able to use the options in fcm-make-mysite.cfg rather than the default fcm-make.cfg.

is there a way to do this?

thanks in advance for any tips. :smile:

jonny

From what I can see, the fcm make built in app will always use file/fcm-make.cfg.
https://metomi.github.io/rose/doc/html/api/built-in/fcm_make.html
However, that file can include further files which can be set via an environment variable (which can be set in an optional config). I suggest you have a look at the approach taken for supporting different platforms in the UM rose stem workflow (e.g. the fcm_make_um app).

1 Like

thanks a lot @dpmatthews,

i got there in the end using basically what you suggested. in the rose-app-mysite.conf file you can tell it what file to use for the fcm-make.cfg, that is…

> fcm cat fcm:roses-u.x/c/p/8/3/0/NIWA/app/fcm_make_um/opt/rose-app-niwa_cray.conf@248761|grep 'fcm-make'
[file:fcm-make.cfg]
source=$ROSE_SUITE_DIR/app/fcm_make_um/file/fcm-make_niwa_cray.cfg

thanks for your help!

jonny

1 Like