Skip to content

Copy installed MAPL field dictionary to experiment run directory during setup #1053

Description

@tclune

Summary

MAPL3 now ships a field dictionary (geos_field_dictionary.yaml) that is
installed to $INSTALL_PREFIX/etc/ during cmake --install. At runtime,
MAPL3 looks for field_dictionary.yaml in the experiment run directory
(current working directory). If the file is absent, MAPL3 silently skips
dictionary lookups in PERMISSIVE mode (the default), so existing experiments
continue to work unchanged.

However, to actually benefit from dictionary-driven metadata (canonical
long_names, units, and default regrid methods for conserved fields), the
dictionary must be present in the run directory.

Required Change

During experiment setup (e.g., in the gcm_setup script or equivalent),
copy or symlink the installed dictionary into the run directory:

# In gcm_setup or lenkf.j / run script setup section:
ln -sf $INSTALL_PREFIX/etc/geos_field_dictionary.yaml $EXPDIR/field_dictionary.yaml

Or as a copy if symlinks are not appropriate for the file system:

cp $INSTALL_PREFIX/etc/geos_field_dictionary.yaml $EXPDIR/field_dictionary.yaml

Context

Acceptance Criteria

  • gcm_setup (or equivalent) copies/links geos_field_dictionary.yaml
    into the run directory as field_dictionary.yaml
  • Experiment runs successfully with the dictionary present
  • No zero-diff impact (PERMISSIVE mode means the dictionary only supplies
    defaults — it does not change values already specified in component specs)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions