[mpas-developers] COMMIT CHECK: Don't fail if variables and/or dimensions are not present in input file
Mark Petersen
mpetersen at lanl.gov
Tue Oct 16 15:53:46 MDT 2012
This is a great help, as we can now add variables with an 'i' input
setting that may not always be present, like the monthly forcing files
that have cause trouble lately.
Thanks Doug, it looks good to me.
Mark
On 10/16/12 15:19, Doug Jacobsen wrote:
> Hello All,
>
> I would like to propose another trunk commit. This commit modifies
> mpas_io.F.
>
> Currently, if a dimension or is not present in an input/restart file
> and a variable is dimensioned using this dimension mpas will fail upon
> doing a halo update on the field. This happens because the missing
> dimension is -1 and MPI doesn't appreciate this.
>
> In this fix, I set the default dimension to 1, but print a warning to
> log.*.err that says the dimension was missing and to ensure that it
> was present in the input file if it should not be 1.
>
> Please let me know if anyone has an issue with this, if not I'll
> probably commit it tomorrow since it's only 2 lines of code that change.
>
> Thanks,
> Doug
>
>
> _______________________________________________
> 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/20121016/cae0400b/attachment.html
More information about the mpas-developers
mailing list