MPAS-Dev / MPAS-Model

Repository for MPAS models and shared framework releases.
238 stars 317 forks source link

Always use geog_data_path with trailing slash in mpas_init_atm_static #1085

Closed mgduda closed 1 year ago

mgduda commented 1 year ago

This PR corrects an issue in which static field processing would fail when the config_geog_data_path option was specified in a namelist without a trailing '/' character. In such cases, trying to build paths to geographical data tiles at various points in the mpas_init_atm_static module would fail to produce a valid path. A local variable, geog_data_path, that is the same as config_geog_data_path but guaranteed to have a trailing '/' was already being set near the beginning of the init_atm_static() routine, and this PR simply uses that variable in place of the user-provided config_geog_data_path.

With the changes in this PR, static field processing can work with a geographical data path from the namelist that either does or does not have a trailing '/'.