diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 330c865c6..17093f973 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -14,3 +14,4 @@ | harry-shepherd | Harry Shepherd | Met Office | 2026-01-08 | | EdHone | Ed Hone | Met Office | 2026-01-09 | | tom-j-h | Tom Hill | Met Office | 2026-01-19 | +| t00sa | Sam Clarke-Green | Met Office | 2026-01-27 | diff --git a/rose-stem/site/meto/common/suite_config_ex1a.cylc b/rose-stem/site/meto/common/suite_config_ex1a.cylc index a3263719e..1c7dfd7fe 100644 --- a/rose-stem/site/meto/common/suite_config_ex1a.cylc +++ b/rose-stem/site/meto/common/suite_config_ex1a.cylc @@ -5,7 +5,12 @@ {# ########################################################################### #} {% do LOG.debug("Entered site/meto/common/suite_config_ex1a.cylc") %} + +{% if site_vars.ex_trustzone == "collab" %} +{% set ex1a_base = 'module use /projects/metoff/spackadmin.mon/releases/2025.12.18/ngms' %} +{% else %} {% set ex1a_base = 'module use /common/internal/spack/releases/2025.10.1/ngms' %} +{% endif %} {% set ex1a_compiler_gnu = 'module switch cpe/22.11 cpe/23.05 ; ' ~ 'module load PrgEnv-gnu ; '~ @@ -42,15 +47,17 @@ [[EX1A_BUILD]] [[[environment]]] - USE_TIMING_WRAPPER=true - USE_VERNIER=true + USE_VERNIER=yes + USE_TIMING_WRAPPER=yes [[[directives]]] -l tmpsize=12GB [[EX1A_RUN]] [[[environment]]] {# BIG_DATA_DIR holds files for io tests #} -{% if site_vars["host_ex"] == "exz" %} +{% if site_vars["ex_trustzone"] == "collab" %} + BIG_DATA_DIR = '/data/users/lfricadmin.mon/data' +{% elif site_vars["host_ex"] == "exz" %} BIG_DATA_DIR = '/common/internal/lfricdir/data' {% else %} BIG_DATA_DIR = '/data/users/lfricadmin/data' @@ -131,6 +138,9 @@ {{ generate_script("pre-script", [ex1a_scitools, ex1a_tech]) }} + [[EX1A_SCRIPTS]] + inherit=EX1A_TECH + [[EX1A_PLOT]] inherit=EX1A_TECH_BASE {{ generate_script("pre-script", [ex1a_scitools]) }} @@ -141,8 +151,12 @@ [[EX1A_EXPORT-SOURCE]] inherit=METO_ORIG [[[environment]]] +{% if site_vars["ex_trustzone"] == "collab" %} + PLATFORM_SYNC = false +{% else %} hostname = $(rose host-select {{site_vars.host_ex}}) PLATFORM_SYNC = true +{% endif %} [[EX1A_HOUSEKEEPING]] inherit=EX1A_TECH_BASE diff --git a/rose-stem/site/meto/groups/group_lbc_demo.cylc b/rose-stem/site/meto/groups/group_lbc_demo.cylc index b9ef8faf5..7e6a0dd45 100644 --- a/rose-stem/site/meto/groups/group_lbc_demo.cylc +++ b/rose-stem/site/meto/groups/group_lbc_demo.cylc @@ -75,7 +75,6 @@ }) %} {# Platform Generic Groups #} -{% if site_vars.launch_platform == "azspice" %} {% do site_groups.update({ "lbc_demo_developer": [ "scripts", @@ -98,7 +97,6 @@ "lbc_demo_ex1a_canned", ], }) %} -{% endif %} {# Platform Generic Extends #} {% do site_groups.developer.extend(site_groups.lbc_demo_developer) %} diff --git a/rose-stem/site/meto/macros/macros_ex1a.cylc b/rose-stem/site/meto/macros/macros_ex1a.cylc index 631427689..71c6df8d8 100644 --- a/rose-stem/site/meto/macros/macros_ex1a.cylc +++ b/rose-stem/site/meto/macros/macros_ex1a.cylc @@ -59,7 +59,11 @@ {% set lfric_nodes = possible_nodes %} {% endif %} + {% if site_vars["ex_trustzone"] == "collab" %} + -q=collabnormal + {% else %} -q=normal + {% endif %} -l select={{ lfric_nodes + ocean_nodes|int + river_nodes|int + @@ -68,7 +72,11 @@ {% macro shared_queue(cores) %} + {% if site_vars["ex_trustzone"] == "collab" %} + -q=collabshared + {% else %} -q=shared + {% endif %} -l ncpus={{ cores }} {% endmacro %} diff --git a/rose-stem/site/meto/variables.cylc b/rose-stem/site/meto/variables.cylc index 540674dbd..0c9e2df2a 100644 --- a/rose-stem/site/meto/variables.cylc +++ b/rose-stem/site/meto/variables.cylc @@ -21,8 +21,23 @@ {% do site_vars.update({"site_platforms": ["ex1a", "azspice"]}) %} -{% do site_vars.update({"launch_platform": "azspice"}) %} -{% do site_vars.update({"scripts_platform": "azspice"}) %} +{# Settings for EX Collab Zone #} +{% from "socket" import getfqdn %} +{% set hostname = getfqdn() %} +{% if "collab.sc" in hostname %} + {% do site_vars.update({"ex_trustzone": "collab"}) %} + {% do site_vars.update({"USE_TOKENS": true}) %} +{% else %} + {% do site_vars.update({"ex_trustzone": "research"}) %} +{% endif %} + +{% if site_vars["ex_trustzone"] == "collab" %} + {% do site_vars.update({"launch_platform": "ex1a"}) %} + {% do site_vars.update({"scripts_platform": "ex1a"}) %} +{% else %} + {% do site_vars.update({"launch_platform": "azspice"}) %} + {% do site_vars.update({"scripts_platform": "azspice"}) %} +{% endif %} {% do site_vars.update({"git_mirror_loc": "/data/users/gitassist/git_mirrors"}) %} @@ -31,7 +46,9 @@ "azspice": "gnu_fast-debug-64bit"} }) %} {# Choose EX Host - default to random ab or cd #} -{% if USE_EXZ is defined and USE_EXZ %} +{% if site_vars["ex_trustzone"] == "collab" %} + {% do site_vars.update({"host_ex" : "ex"}) %} +{% elif USE_EXZ is defined and USE_EXZ %} {% do site_vars.update({"host_ex" : "exz"}) %} {% elif USE_EXAB is defined and USE_EXAB %} {% do site_vars.update({"host_ex": "exab"}) %} diff --git a/rose-stem/templates/runtime/generate_runtime_control.cylc b/rose-stem/templates/runtime/generate_runtime_control.cylc index 02193d9c4..689d58ef1 100644 --- a/rose-stem/templates/runtime/generate_runtime_control.cylc +++ b/rose-stem/templates/runtime/generate_runtime_control.cylc @@ -31,7 +31,7 @@ ROSE_TASK_APP = extract_source DEPENDENCIES = {{dependencies}} USE_MIRRORS = {{USE_MIRRORS}} - USE_TOKENS = {{USE_TOKENS}} + USE_TOKENS = {{site_vars.get("USE_TOKENS", "false")}} {% if USE_MIRRORS %} {% if "git_mirror_loc" in site_vars %} GIT_MIRROR_LOC = {{site_vars.git_mirror_loc}}