Add lssh field to cGroupDynamicData

Issue #951 closed
Erik Schnetter created an issue

The size and memory layout of grid functions is described by two variables, cctk_lsh and cctk_lssh. The structure cGroupDynamicData is missing the lssh field. I propose to add it, and am providing a patch.

cctk_lssh is originally intended to support staggered grid functions, i.e. grid functions that have fewer "active" grid points than are allocated in memory (e.g. n-1 cells vs. n vertices). This can also be used to pad grid variables, which can improve cache efficiency and vectorisation.

Fully supporting cctk_lssh in the flesh will later allow supporting padding in Carpet and/or PUGH.

Keyword:

Comments (4)

  1. Log in to comment