[Users] Code failure apparently due to changes in Reduction.c

Roland Haas rhaas at illinois.edu
Mon Sep 13 13:09:33 CDT 2021

Hello Lorenzo,

> So is the call to CCTK_ReduceLocArrayToArray1D valid or not in Carpet? 
The function itself is valid (that function, ignoring its arguments, can
be used with Carpet) but the operator handle that was passed to it was
not. Hence the call (use of the function) was wrong. You must pass an
operator handle obtained from the Handle function matching the reduction
function you will call (and for the correct "old" / "new" interface
style). From the original email I concluded that you had used to obtain
a handle from "CCTK_LocalArrayReductionHandle" and that is wrong with
Carpet (though it has been long enough that I do not remember my actual
reasoning anymore). Thus any use of that handle with Carpet is wrong.

This is b/c Carpet only supports the "old" reduction interface. That
interface is (only) described in the "Old Reduction Specification API
Documentation" section fond just below here:


> I'm
> asking because in Spritz we use Carpet and we have a call to
> CCTK_ReduceLocArrayToArray1D with the handle obtained from
> CCTK_ReductionArrayHandle (which should work according to the second thing
> you wrote) and this gives an error in reduction.
In my email that you quote
I tried to give a list of the "correct" combinations and also the
combination one has to use with Carpet:

"CCTK_ReduceLocArrayToArray1D" however is "old" interface, so is valid
with Carpet, but you must use "CCTK_ReductionArrayHandle" to get the
reduction handle for it. You must *not* use "CCCTK_ReductionHandle" or
"CCTK_LocalArrayReductionHandle" to get a handle to use with

So if in Spritz you are using CCTK_ReductionArrayHandle and
CCTK_ReduceLocArrayToArray1D then you are doing things correctly and
all is fine.


My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20210913/2797415a/attachment.bin 

More information about the Users mailing list