[Carpet] CCTK_{ORIGIN, DELTA}_SPACE() not set when entering local mode
Erik Schnetter
schnetter at cct.lsu.edu
Thu May 25 04:24:43 CEST 2006
Looking at your example thorn source code again, I see the error.
The macro DECLARE_CCTK_ARGUMENTS declares certain local variables and
initialises them. In your routine, these are initialised in
singlemap mode, not in local mode. The macro CCTK_ORIGIN_SPACE
accesses these local variables. These are set to sentinel values
that should catch your attention. (They are not undefined).
I am puzzled why your code produces sensible numbers in its first
iteration. It should not.
You can place the definition DECLARE_CCTK_ARGUMENTS into the loop
over all components. This will define the local variables correctly.
Of course, you could also schedule your test code in local mode. Can
you try this just for debugging purposes?
-erik
--
Erik Schnetter <schnetter at cct.lsu.edu>
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: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : /archives/developers/attachments/20060524/c8ea83c3/attachment.pgp
More information about the developers
mailing list