[Patches] Problems with 4D grid arrays

Erik Schnetter schnetter at cct.lsu.edu
Wed Mar 19 19:48:09 CST 2008


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.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>   http://www.cct.lsu.edu/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: maxgfdim.diff
Type: application/octet-stream
Size: 4206 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/patches/attachments/20080319/9274fc68/attachment-0001.obj 
-------------- next part --------------



More information about the Patches mailing list