Skip to content

Commit

Permalink
Add logic to halt snow increment update for noah-mp or
Browse files Browse the repository at this point in the history
fractional grids.

Fixes ufs-community#549.
  • Loading branch information
GeorgeGayno-NOAA committed Sep 18, 2023
1 parent e67a305 commit 64e138b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sorc/global_cycle.fd/cycle.f90
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,16 @@ SUBROUTINE SFCDRV(LUGB, IDIM,JDIM,LENSFC,LSOIL,DELTSFC, &
call MPI_ABORT(MPI_COMM_WORLD, 18, IERR)
ENDIF

IF (FRAC_GRID .AND. DO_SNO_INC) THEN
print *, 'FATAL ERROR: Snow increment update does not work with fractional grids.'
call MPI_ABORT(MPI_COMM_WORLD, 19, IERR)
ENDIF

IF (IS_NOAHMP .AND. DO_SNO_INC) THEN
print *, 'FATAL ERROR: Snow increment update does not work with NOAH_MP.'
call MPI_ABORT(MPI_COMM_WORLD, 29, IERR)
ENDIF

!ichk = 282
!jchk = 362
!ijchk = (jchk-1) * idim + ichk
Expand Down

0 comments on commit 64e138b

Please sign in to comment.