[Developers] assigning to array parameters without any array subscript

Jonathan Thornburg jthorn at aei.mpg.de
Sat Jun 4 07:38:03 CDT 2005


Hi,

Suppose I declare an array parameter

 	# param.ccl
 	CCTK_REAL blah[10] "blah blah blah"
 	{
 	*:* :: "any real number:
 	} 0.0

and then try to assign it in a par file without the array index:

 	# foo.par
 	MyThorn::blah = 42.69

Current-cvs Cactus appears to accept this without errors/warnings,
and appears to assign the value to all array elements.

Question:  Is this "official behavior", or an implementation artifact,
or an implementation bug?

[A related point: the Cactus Users' Guide chapter B5 "Cactus Parameters",
where I first searched to try to find the answer to this question, not
only doesn't say, it turns out not to mention array parameters at all!]

ciao,

-- 
-- Jonathan Thornburg <jthorn at aei.mpg.de>
    Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
    Golm, Germany, "Old Europe"     http://www.aei.mpg.de/~jthorn/home.html
    "Washing one's hands of the conflict between the powerful and the
     powerless means to side with the powerful, not to be neutral."
                                       -- quote by Freire / poster by Oxfam




More information about the Developers mailing list