[Developers] Problems with 4D grid arrays
Yaakoub El Khamra
yye00 at cct.lsu.edu
Tue Mar 25 07:41:33 CST 2008
I second this patch. It would make life easier for people using the
Funwave thorns (coastal modeling code).
On Tue, 2008-03-25 at 13:43 +0100, Thomas Radke wrote:
> Erik Schnetter wrote:
> > Cactus has currently a problem if one uses grid arrays of dimension D
> > while grid functions have a dimension less than D. During
> > initialisation, Cactus sets cctk_dim to the largest dimension of all
> > grid variables in all active thorns. This is arguably wrong; cctk_dim
> > should be set to the (maximum) dimension of the grid functions.
> >
> > The enclosed patch adds a new function to the flesh CCTK_MaxGFDim
> > which returns the (maximum) dimension of all grid functions. This
> > function is used to set cctk_dim.
>
> The patch looks good to me.
>
More information about the Developers
mailing list