Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • pystencils pystencils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pycodegen
  • pystencilspystencils
  • Merge requests
  • !92

More staggered grid improvements

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Michael Kuron requested to merge staggered into master Nov 22, 2019
  • Overview 0
  • Commits 4
  • Pipelines 4
  • Changes 2
  • Fix access to directions with mixed signs (NW, (-1/2, 1/2) and the like). They were previously mapped to the wrong cell.
  • When storing fluxes on a staggered grid, the usual sign convention is that fluxes point outward from the cell. Previously, we did not consistently respect that (staggered_access("E") would return the same thing as staggered_access("W") did when called from the eastern-next cell). Now, when a field is declared as STAGGERED_FLUX, it returns an accessor with a prefactor of -1 in that case. The previous behavior where sign is not reversed is still useful when e.g. storing sums (e.g. mean values) instead of differenes (e.g. finite difference fluxes) on the staggered grid.
  • staggered_vector_access returns a vector/tensor full of Access objects corresponding to the shape (index_shape[1:]) of the staggered field
Edited Nov 23, 2019 by Michael Kuron
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: staggered