[mpas-developers] COMMIT CHECK: Don't fail if variables and/or dimensions are not present in input file

Doug Jacobsen jacobsen.douglas at gmail.com
Tue Oct 16 15:20:57 MDT 2012


Hello again all,

Sorry for spamming you with emails. But here is the modified mpas_io.F

Thanks,
Doug

On Tue, Oct 16, 2012 at 3:19 PM, Doug Jacobsen
<jacobsen.douglas at gmail.com>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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/mpas-developers/attachments/20121016/0310ba4f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpas_io.F
Type: application/octet-stream
Size: 130211 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/mpas-developers/attachments/20121016/0310ba4f/attachment-0001.obj 


More information about the mpas-developers mailing list