+Add grid_unit_to_L to the ocean_grid_type #766
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add the new element
grid_unit_to_L
to theocean_grid_type
and thedyn_horgrid_type
, which can be used to convert the units of theG%geoLat
andG%geoLon
variables to rescaled horizontal distance units ([L ~> m]) when they are Cartesian coordinates. When Cartesian coordinates are not in use,G%grid_unit_to_L
is set to 0.This new element of the grid type is used to test for inconsistent grids or to eliminate rescaling variables in
set_rotation_beta_plane()
,initialize_velocity_circular()
,DOME_initialize_topography()
,DOME_initialize_sponges()
,DOME_set_OBC_data()
,ISOMIP_initialize_topography()
,idealized_hurricane_wind_forcing()
,Kelvin_set_OBC_data()
,Rossby_front_initialize_velocity()
,soliton_initialize_thickness()
, andsoliton_initialize_velocity()
. These are the instances where this new variable could be used and bitwise identical answers are recovered. There are a few other places where they should be used, but where answers would change, and these will be deferred to a subsequent commit.All answers are bitwise identical, but there are new elements in two transparent and widely used types.