Skip to content

Consistency of interpolated metrics #1472

Description

@johnomotani

[:+1: to Fabio Riva for raising this issue...] We do a 4th order interpolation to get the metric components, etc. on staggered grids. It is possible that this will result in bad values (e.g. negative values of the diagonal metric components). We should handle or check for this... Options could be:

  1. check for positivity of the staggered metrics (are there any other properties that we should check?)
    • what to do if the check fails?
  2. interpolate the logarithm of the diagonal metric components
    • ensures positivity, but off-diagonal components may sensibly be negative, so we can't interpolate logarithms for those; we end up being slightly inconsistent if we do this
  3. combine 1. and 2. - interpolate the logarithms only where normal interpolation gives a negative value
  4. Require the grid generator to give output on the staggered grids as well as the cell centre grid
    • probably the ideal solution, but the most work to implement

Any thoughts or other suggestions?

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