LarissaReames-NOAA / MPASSIT

Fortran program to interpolate MPAS data to structured grids
GNU General Public License v3.0
7 stars 13 forks source link

Bug fix for use case where interp_diag=.true. but interp_hist=.false. #1

Closed weather4evr closed 1 year ago

weather4evr commented 1 year ago

Fixed an issue that caused write_data.F90 to crash when interp_diag=.true. but interp_hist=.false. because of unread variables.

Tested and it now works with interp_diag=.true. but interp_hist=.false. Also works with interp_diag=.true. and interp_hist=.true.

For the variables added, if interp_diag=.true. and interp_hist=.true., values from the history file will take precedence. Logic regarding this could maybe be improved but probably shouldn't matter to read the same variable twice.