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.
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.