NCAR / wrf_hydro_nwm_public

WRF-Hydro model code
https://ral.ucar.edu/projects/wrf_hydro
Other
181 stars 139 forks source link

Hydro subhourly output frequency not working #606

Open arezoorn opened 2 years ago

arezoorn commented 2 years ago

Hydro sub hourly output frequency not working. If user specifies the output frequency of anything other than hourly, for example:

!Specify the output file write frequency...(minutes) out_dt = 10 ! minutes

It will run without throwing an error However, it will just output at the top of the hour.

scrasmussen commented 2 years ago

It appears that out_dt is accessed in an output subroutine that will only be called when land_driver_exe is called in main_hrldas_driver.F. (This might not be true in different model configurations)

The land_driver_exe timestep is every hour, it iterates the number of times given by KHOUR in the namelist.hrldas.

Changing out_dt's units from minutes to hours is probably the best solution. When out_dt is read in by the namelist it could be converted from hours to minutes in the code so no other bit of the code needs to be changed. I'm unsure though if some different model configuration would need out_dt's units to be in minutes, so that probably needs to be checked first.