[mpas-developers] Trunk Commit Check: Bug in core_sw/module_global_diagnostics.F
Xylar Asay-Davis
xylar at lanl.gov
Mon Dec 20 15:48:41 MST 2010
Hi Doug,
Great that you found this bug!
In other parts of the code, we're using indices of dummy cells to avoid
having to use these kinds of if statements. Is there a way that approach
could be applied to cellsOnEdge in general, and would it work in the
diagnostics?
-Xylar
On 12/20/10 9:19 AM, Doug Jacobsen wrote:
> Hi Everyone,
>
> So, I found a bug in the shallow waters module_global_diagnostics.F.
> It's only apparent for limited area grids. Basically, I was getting
> cellsOnEdge, and just using both of them, but on a boundaryEdge one of
> the two cellsOnEdge is 0, making it not a valid cell, so the code
> would segfault. I changed it to check that both of the two cells were
> not 0 before doing the computation, and it appears to work.
>
> I have attached the file, to see if anyone cared to look at it. I'll
> probably commit it tomorrow if I don't hear anything back. Thanks!
>
> Doug
>
>
> _______________________________________________
> mpas-developers mailing list
> mpas-developers at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/mpas-developers
--
***********************
Xylar S. Asay-Davis
E-mail: xylar at lanl.gov
Phone: (505) 606-0025
Fax: (505) 665-2659
CNLS, MS B258
Los Alamos National Laboratory
Los Alamos, NM 87545
***********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/mpas-developers/attachments/20101220/b7dd0ec3/attachment.html
More information about the mpas-developers
mailing list