Skip to content

Fix / delete some comments related to the lnd-glc mapping - #728

Open
billsacks wants to merge 2 commits into
ESCOMP:mainfrom
billsacks:fix_glc_comments
Open

billsacks wants to merge 2 commits into
ESCOMP:mainfrom
billsacks:fix_glc_comments

Conversation

@billsacks

Copy link
Copy Markdown
Member

Description of changes

I came across these comments which seemed either misleading or no longer true.

I struggled with todo note that is removed here, but from spending quite a bit of time trying to get my head back around this, I think it's no longer needed. (See the commit message associated with that removal for details.)

Specific notes

Contributors other than yourself, if any: none

CMEPS Issues Fixed (include github issue #): none

Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial) - bfb

Any User Interface Changes (namelist or namelist defaults changes)? No

Testing performed

None... note that the only changes are comments.

I'm pretty sure we now handle this situation properly; at least, I can't
think of what we'd still need to do. Some changes we've made since this
comment was written - that may help address it - include:
- We handle fractional values of icemask_coupled_fluxes in determining
  the fate of the qice flux in CTSM.
- Rather than doing a conservative remap, we do a bilinear remap with a
  later renormalization for conservation; this renormalization treats
  all qice outside the icemask as zero.

(But I'm actually not sure what the issue was originally that led me to
write this todo note.)

This new issue could also be somewhat relevant here:
ESCOMP#727

This deleted todo comment is somewhat out of place here in CMEPS; here
was its context in cpl7:

    ! ------------------------------------------------------------------------
    ! Map elevation class 0 (bare land) and ice elevation classes
    ! ------------------------------------------------------------------------

    call map_bare_land(l2x_l, landfrac_l, fieldname_trimmed, mapper, data_g_bareland)

    ! Start by setting the output data equal to the bare land value everywhere; this will
    ! later get overwritten in places where we have ice
    !
    ! TODO(wjs, 2015-01-20) This implies that we pass data to CISM even in places that
    ! CISM says is ocean (so CISM will ignore the incoming value). This differs from the
    ! current glint implementation, which sets acab and artm to 0 over ocean (although
    ! notes that this could lead to a loss of conservation). Figure out how to handle
    ! this case.
    data_g(:) = data_g_bareland(:)

    ! Map the SMB to ice-covered cells
    call map_ice_covered(l2x_l, landfrac_l, fieldname_trimmed, &
         glc_topo, mapper, data_g_ice_covered)

    where (glc_elevclass /= 0)
       data_g = data_g_ice_covered
    end where

Note that I think this todo comment was connected with this old comment
in glint_downscale.F90:

    ! CISM assumes any point with usrf <= 0 is ocean, and thus can't form ice
    ! (actually, this isn't exactly the cutoff used elsewhere in CISM - we may
    ! want to change this conditional to use GLIDE_IS_OCEAN). So it makes no
    ! sense to pass acab and artm there. However, this could lead to a loss of
    ! conservation, e.g., if CLM thinks a grid cell is bare ground with some
    ! positive SMB (glacial inception) yet CISM says it's ocean (so ignores
    ! the SMB). We eventually want to handle this by keeping CLM consistent
    ! with CISM in terms of its breakdown into land vs "ocean" (e.g., wetland
    ! in CLM). In that case, if CISM says a point is ocean, then it would
    ! tell CLM that that point is ocean, and so CLM wouldn't try to generate
    ! SMB there.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants