[mpas-developers] IO bug fix

Doug Jacobsen jacobsen.douglas at gmail.com
Fri Nov 16 15:01:35 MST 2012


Hey Michael,

I just tested it and it seems to work fine for me.

I'm fine with you committing it whenever you feel like it.

Thanks


On Fri, Nov 16, 2012 at 2:23 PM, Michael Duda <duda at ucar.edu> wrote:

> 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
> _______________________________________________
> mpas-developers mailing list
> mpas-developers at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/mpas-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/mpas-developers/attachments/20121116/e5569c78/attachment.html 


More information about the mpas-developers mailing list