[mpas-developers] IO bug fix
Michael Duda
duda at ucar.edu
Fri Nov 16 14:23:15 MST 2012
Hi, Folks.
I'd like to commit a bug fix to the trunk. In the read_and_distribute_fields()
subroutine, which is currently only called from the framework and by the
non-hydrostatic atmosphere core, we need to obtain the time frame to read from
the input object, rather than assuming this will always be 1. The fix is simply
to change
call MPAS_readStream(input_obj % io_stream, 1, ierr)
to
call MPAS_readStream(input_obj % io_stream, input_obj % time, ierr)
In the framework code, we always set input_obj % time before calling this routine,
so there will be no impact on any core besides the non-hydrostatic atmosphere,
where we also call read_and_distribute_fields() to periodically update surface
fields from a file with multiple time frames.
Any comments are welcome.
Thanks,
Michael
More information about the mpas-developers
mailing list