Commit
60e54dfd83afb7da9c74252b59c5f249e3446e69
by bmg2I fixed a bug in module_bl_clubb.F that was causing WRF-CLUBB(-SILHS) to
crash. In short, c_K was previously declared as a module variable in
module_bl_clubb.F in order to transport its value from CLUBB's setup
(where it is read in and set) to use in the main CLUBB timestep. With
the change where clubb_params is now passed through the subroutine
calls, a second, local c_K variable was declared and introduced in
the setup portion of CLUBB. With that, the statement that assigned
c_K was most likely now assigning the local c_K variable rather than
the module c_K variable. Since the module c_K variable was no longer
being assigned a value, it was being used uninitialized in the main
CLUBB timestep, causing the crash.
However, the introduction of clubb_params renders a module variable c_K
unnecessary and it can now be removed from the code. This eliminates
the problem and WRF-CLUBB can now run without crashing again.
larson-group/sys_admin#763