Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescale 6 ice shelf variables #805

Open
wants to merge 1 commit into
base: dev/gfdl
Choose a base branch
from

Conversation

Hallberg-NOAA
Copy link
Member

Changed the rescaling of 6 ice shelf variables to cancel out common conversion factors that appear in several expressions.

The C_basal_friction argument to initialize_ice_C_basal_friction() is now in partially rescaled units, reflecting the portion that does not cancel out fractional-power units from a power law fit with an arbitrary power. The C_basal_friction array in ice_shelf_dyn_CS and the C_friction variable in initialize_ice_C_basal_friction() were similarly rescaled. There are new scale factors in a get_param() call and a MOM_read_data() call and a conversion factor in a register_restart_field() call that reflect these changes.

The KE_tot and mass_tot variables in write_ice_shelf_energy(), are kept in scaled units until they are written.

The internal variable fN in calc_shelf_taub()is kept in scaled units, but there is now a scaling factor ofUS%Z_to_Lin the expression forfB. This latter could be folded into the CF_Maxelement ofice_shelf_dyn_CS`, but I am unsure whether this would be physically sensible.

All answers should be bitwise identical and no output should change, but this has not been extensively tested yet.

  Changed the rescaling of 6 ice shelf variables to cancel out common
conversion factors that appear in several expressions.

  The C_basal_friction argument to initialize_ice_C_basal_friction is now in
partially rescaled units, reflecting the portion that does not cancel out
fractional-power units from a power law fit with an arbitrary power.  The
C_basal_friction array in ice_shelf_dyn_CS and the C_friction variable in
initialize_ice_C_basal_friction were similarly rescaled.  There are new
scale factors in a get_param_call and a MOM_read_data call and a conversion
factor in register_restart_field call that reflect these changes.

  The KE_tot and mass_tot variables in write_ice_shelf_energy,
are kept in scaled units until they are written.

  The internal variable fN in calc_shelf_taub is kept in scaled units, but there
is now a scaling factor of US%Z_to_L in the expression for fB.  This latter
could be folded into the CF_Max element of ice_shelf_dyn_CS, but I am unsure
whether this would be physically sensible.

  All answers should be bitwise identical and no output should change, but this
has not been extensively tested yet.
@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code cleanup with no changes in functionality or results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant