Skip to content

marine_bmat and other tasks can't find fix files for 0.25 deg exp #2056

@shlyaeva

Description

@shlyaeva

First reported and fixed locally by Laura Slivinski:

It seems that OCNRES should be set to 025, but it's getting read in as 25, which causes issues in JGLOBAL_MARINE_BMAT_INITIALIZE and in JGLOBAL_MARINE_ANALYSIS_ECEN because they're looking for yamls that don't exist (marine_stage_fix_25.yaml.j2 instead of marine_stage_fix_025.yaml.j2).
To hack this, I changed line 62 of marine_bmat_config.yaml.j2 from
{% include 'marine_stage_fix_' ~ OCNRES ~ '.yaml.j2' %}
to
{% include 'marine_stage_fix_' ~ '%03d'|format(OCNRES|int) ~ '.yaml.j2' %}
and similarly on line 41 of /scratch4/BMC/gsienkf/Laura.Slivinski/GW_ursa/global-workflow/parm/gdas/marine/marine_ecen_config.yaml.j2.
and that seemed to fix the problem (for now).

This fixes the issue for me too, I'll open a PR soon-ish.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions