Updates WRF_cpl/module_wrf_HYDRO.F to use the new MPP_LAND_INIT(global_nx, global_ny) initializer in mpp_land.F so that coupled model can run without crashing. Also copies the WRF-supplied MPI_COMM_WORLD to HYDRO_COMM_WORLD, since MPP assumes that MPI has already been initialized and skips this step.
TESTS CONDUCTED:
Ran WRF-Hydro Front Range Coupled Test Case and output was reasonable (no regression test for this case)
NOTES:
The code compiled originally due to the in_global_nx and in_global_ny arguments being marked as optional, but then caused a crash by being assigned to module variables at runtime. If the parameters can be optional, additional code should be added to handle the not-present case.
TYPE: bug fix
KEYWORDS: coupled, MPP
SOURCE: Ryan @ NCAR
DESCRIPTION OF CHANGES:
Updates
WRF_cpl/module_wrf_HYDRO.F
to use the newMPP_LAND_INIT(global_nx, global_ny)
initializer in mpp_land.F so that coupled model can run without crashing. Also copies the WRF-supplied MPI_COMM_WORLD to HYDRO_COMM_WORLD, since MPP assumes that MPI has already been initialized and skips this step.TESTS CONDUCTED:
Ran WRF-Hydro Front Range Coupled Test Case and output was reasonable (no regression test for this case)
NOTES:
The code compiled originally due to the
in_global_nx
andin_global_ny
arguments being marked asoptional
, but then caused a crash by being assigned to module variables at runtime. If the parameters can be optional, additional code should be added to handle the not-present case.