ufs-community/ccpp-physics

If input_lakedepth is lost between restarts, CLM Lake model will crash

Closed this issue · 0 comments

Description

If CLM Lake is used in FV3 as intended, input_lakedepth should never be 0. The world is not always ideal. Sometimes there may be a change in orography between cycles of a cycled model. Or, something may go wrong in the model restart procedure. This can lead to input_lakedepth=0 on some points.

When that happens, there is a divide by zero in the clm lake mode.

Steps to Reproduce

  1. Fill input_lakedepth with 0 in a restart file.
  2. Restart the model.
  3. Witness the divide by zero error.

Additional Context

This was discovered during RRFS parallels.