Skip to content

Compute, rather than read from input, deformation_coef_* fields at model startup#1419

Draft
mgduda wants to merge 2 commits intoMPAS-Dev:developfrom
mgduda:atmosphere/move_deformation_coef_computation
Draft

Compute, rather than read from input, deformation_coef_* fields at model startup#1419
mgduda wants to merge 2 commits intoMPAS-Dev:developfrom
mgduda:atmosphere/move_deformation_coef_computation

Conversation

@mgduda
Copy link
Contributor

@mgduda mgduda commented Mar 12, 2026

This PR modifies both the init_atmosphere and atmosphere cores so that the deformation_coef_{c2,s2,cs,c,s} fields are computed by the model during its initialization rather than being read from a netCDF input file (either an invariant file, an initial conditions file, or a restart file).

The changes in this PR may be logically viewed as occurring in three steps:

  1. Add code to the atmosphere core to compute the deformation_coef_{c2,s2,cs,c,s} fields at model start up using identical code to that which is found in the init_atmosphere core
  2. Remove the deformation_coef_{c2,s2,cs,c,s} fields from the atmosphere core's 'invariant' stream (effectively removing these fields from the 'input' and 'restart' streams as well) so the fields are no longer read from netCDF input files.
  3. Remove the deformation_coef_{c2,s2,cs,c,s} fields and their computation from the init_atmosphere core.

mgduda added 2 commits March 12, 2026 23:16
…del startup

This commit removes the deformation_coef_{c2,s2,cs,c,s} fields from the
definition of the 'invariant' stream in the atmosphere core's Registry.xml file
(effectively removing them from the 'input' and 'restart' streams as well), and
adds a new routine, atm_initialize_deformation_weights, to the atm_core module
to compute these fields at model start-up.
…sphere core

This commit removes the deformation_coef_{c2,s2,cs,c,s} fields from the
init_atmosphere core, including the removal of these fields from the
init_atmosphere core's Registry.xml file as well as the removal of code
in the atm_advection module for computing these fields.
@mgduda mgduda changed the title Atmosphere/move deformation coef computation Compute, rather than read from input, deformation_coef_* fields at model startup Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant