Moved two assignments from the read_areal_forcing() routing in ioModule into the solve_snow() routing in runSnow17 module. One assigned surface pressure forcing, and the other stored the scaled pcp for output. Without this change, pressure (PA) is unassigned when the model is run in nextgen, leading to melt errors.
Testing
The updated code was compiled and run for the test case (ex1), yielding identical outputs to the original code; the compiler was gfortran and OS was linux (NCAR derecho login node).
Notes
This bug was diagnosed and fixed by Josh Sturtevant and Andy Wood (CO School of Mines).
Moved two assignments from the read_areal_forcing() routing in ioModule into the solve_snow() routing in runSnow17 module. One assigned surface pressure forcing, and the other stored the scaled pcp for output. Without this change, pressure (PA) is unassigned when the model is run in nextgen, leading to melt errors.
Testing
The updated code was compiled and run for the test case (ex1), yielding identical outputs to the original code; the compiler was gfortran and OS was linux (NCAR derecho login node).
Notes
This bug was diagnosed and fixed by Josh Sturtevant and Andy Wood (CO School of Mines).