Skip to content

Potential Cancellation Issue in deln_flux #323

@oelbert

Description

@oelbert

The d2 calculation near the end of deln_flux has discrepant results between 64- and 32-bit caulculations:

d2(i,j) = (fx2(i,j)-fx2(i+1,j)+fy2(i,j)-fy2(i,j+1))*gridstruct%rarea(i,j)

The GEOS team has resolved this by enforcing the order-of-operations in the flux addition/subtractions:
d2(i,j) = ((fx2(i,j)-fx2(i+1,j))+(fy2(i,j)-fy2(i,j+1)))*gridstruct%rarea(i,j)

This could be a good improvement to 32-bit runs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions