NOAA-OWP / noah-owp-modular

Modularized version of the NOAH-MP land surface model.
Other
9 stars 19 forks source link

Add capacity to read-in gridded forcings when executed in standalone #98

Closed GreyREvenson closed 7 months ago

GreyREvenson commented 9 months ago

Purpose

This PR adds capacity to read-in gridded forcings when executed in standalone (i.e., outside of NextGen).

Additions

Changes

Testing

GreyREvenson commented 8 months ago

Tagging @SnowHydrology and @andywood is case you'd like to provide input/feedback on this PR's general approach.

@andywood previously wrote that 'In Fortran the ability to read large chunks at once is really valuable. The huge thing to avoid is unnecessary file open/close/inquire/read/write operations -- so we hopefully want to facilitate this.' This PR has the program reading in the whole of any given forcings file in one-go, which I believe takes advantage of Fortran's relative strength in reading in large arrays. However, the approach could be problematic if the user doesn't have the computing resources to read-in such a large file.

drakest123 commented 7 months ago

This PR is an optimization that reduces the number of times that a call that advances the model simulation time is invoked.