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

doc, ice_history: correct units for 'sigP' and improve doc for stress variables #817

Merged
merged 3 commits into from
Mar 8, 2023

Commits on Mar 8, 2023

  1. doc/source/conf.py: adjust for sphinxcontrib.bibtex 2.0

    The sphinxcontrib.bibtex Sphinx extension used for the bibliography now
    wants the bibliography file to be configured in the Sphinx configuration
    file (conf.py) instead of in the source file where the bibliography is
    included. This is new in sphinxcontrib.bibtex 2.0 [1], so let's do that.
    
    Keeping the filename also in zreferences.rst does not hurt and lets us
    stay compatible with earlier versions of sphinxcontrib.bibtex, so let's
    keep it there also.
    
    [1] https://sphinxcontrib-bibtex.readthedocs.io/en/latest/changes.html#id5
    phil-blain committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    9b42771 View commit details
    Browse the repository at this point in the history
  2. ice_history: correct units for 'sigP'

    The intenal ice pressure 'sigP' is is units of N/m, as can be seen in
    ice_dyn_shared::principal_stress. However, the corresponding history
    variable is wrongly defined in ice_history::init_hist with unit '1'
    (dimensionless). This means the wrong unit is written to the NetCDF
    history output. This dates back to the introduction of that variable in
    6ed2359 (Added pressure, modified norm of principal stresses and made
    small modifs to basal stress following Till's comments, 2018-03-02).
    
    Fix the unit. While at it, add an entry for 'sigP' in the index, from
    which this variable is missing.
    
    Reported-by: Frederic Dupont <frederic.dupont@canada.ca>
    Reported-by: Jean-Francois Lemieux <jean-francois.lemieux@canada.ca>
    phil-blain committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    59dbdc2 View commit details
    Browse the repository at this point in the history
  3. doc: clarify stress variables

    Try to make the doc a little less confusing by cross-referencing the
    code variables used for stress computations with the corresponding
    variables in the science guide a little bit more, and vice-versa:
    
    - mention the doc variables sigma_1, sigma_2 in the index entries for
    stressp, stressm
    - mention the code variables stressp, stressm when the doc variables
    sigma_1, sigma_2 are introduced
    - introduce new doc variables sigma_n,1 and sigma_n,2 to denote the
    normalized principal stresses, and add the equation for those. This
    allows mentioning that they are normalized by the ice strength, which
    was not mentioned elsewhere.
    - mention these new doc variables in the index entry for sig1, sig2
    - refer to the normal stress sigma_11, sigma_22 by their variable names
    when mentioning them in the sentence that introduces the ice pressure
    - mention the code variables sig1, sig2 in the "Implementation" part of
    the user guide when mentioning the 'principal_stresses' subroutine.
    
    Helped-by: Jean-Francois Lemieux <jean-francois.lemieux@canada.ca>
    phil-blain committed Mar 8, 2023
    Configuration menu
    Copy the full SHA
    7b3ef24 View commit details
    Browse the repository at this point in the history