A few variables were not defined properly in the Noah-MP-4.0.1
physics routines. These were revealed by using the Intel 18
compiler with strict checks during the integration of the LSM
into the Land Information System (LIS) software framework.
Variable MOZ was not initialized in subroutine GLACIER_FLUX,
which calls subroutine SFCDIF1_GLACIER. In this routine,
MOZOLD is set to the value of MOZ, and later on, MOZOLD is
multiplied by a new value of MOZ. In the land physics,
MOZ is set to zero before the call to subroutine SFCDIF1;
this initialization was followed in the glacier physics.
In subroutine ENERGY, variable RB is declared to be an
output variable; however, it was not set in the routine.
In subroutine PEDOTRANSFER_SR2006, the variable k was not
declared to be an integer.
A few variables were not defined properly in the Noah-MP-4.0.1 physics routines. These were revealed by using the Intel 18 compiler with strict checks during the integration of the LSM into the Land Information System (LIS) software framework.
Variable MOZ was not initialized in subroutine GLACIER_FLUX, which calls subroutine SFCDIF1_GLACIER. In this routine, MOZOLD is set to the value of MOZ, and later on, MOZOLD is multiplied by a new value of MOZ. In the land physics, MOZ is set to zero before the call to subroutine SFCDIF1; this initialization was followed in the glacier physics.
In subroutine ENERGY, variable RB is declared to be an output variable; however, it was not set in the routine.
In subroutine PEDOTRANSFER_SR2006, the variable k was not declared to be an integer.
Resolves: #15