[Users] Code failure apparently due to changes in Reduction.c
Yosef Zlochower
yosef at astro.rit.edu
Tue Aug 17 11:35:57 CDT 2021
Hi,
A code that we are using seems to no longer work with Cactus. The
issue seems to be that the code called CCTK_LocalArrayReductionHandle.
The code, as checked out, produces errors because the appropriate handle
isn't found. If I modify the function as below, I no longer get the
error message
int CCTK_LocalArrayReductionHandle(const char *reduction)
{
int handle;
handle = Util_GetHandle(LocalArrayReductionOperators, reduction, NULL);
if (handle < 0)
{
CCTK_VWarn(1,__LINE__,__FILE__,"Cactus",
"CCTK_LocalArrayReductionHandle: No handle: '%d' found
for reduction operator "
"'%s'", handle, reduction);
}
handle += ARRAY_OPERATOR_HANDLE_OFFSET; //// MY changes
return handle;
}
Should we no longer use CCTK_LocalArrayReductionHandle?
--
Dr. Yosef Zlochower
Center for Computational Relativity and Gravitation
Associate Professor
School of Mathematical Sciences
Rochester Institute of Technology
85 Lomb Memorial Drive
Rochester, NY 14623
Office:74-2067
Phone: +1 585-475-6103
yosef at astro.rit.edu
CONFIDENTIALITY NOTE: The information transmitted, including
attachments, is intended only for the person(s) or entity to which it
is addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited. If you received this
in error, please contact the sender and destroy any copies of this
information.
More information about the Users
mailing list