polaris.constants.pcd.check_pcd_version_matches_branch

polaris.constants.pcd.check_pcd_version_matches_branch(branch, model)[source]

Check that the PCD version in Polaris matches the version in a branch.

Parameters:
  • branch (str) – The path to the base of an E3SM or Omega branch containing share/pcd.yaml.

  • model (str) – The model being set up (e.g. 'mpas-ocean' or 'omega').

Raises:

ValueError – If the PCD version in Polaris and the branch are not identical.