<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear all,</p>
<p>I am currently trying to use the results of a global reduction
operation (average) during runtime for the derivation of source
terms.</p>
<p>Especially, I run <br>
</p>
<p><b><font size="-1"> if (CCTK_Reduce(cctkGH, -1,
CCTK_ReductionHandle("average"), 1,<br>
CCTK_VARIABLE_REAL,<br>
magvaravg, 1,<br>
CCTK_VarIndex("FFEvolve::magvar")))<br>
CCTK_WARN(0, "Error while reducing FFEvolve::magvaravg");</font></b></p>
<p>with OPTION:GLOBAL prior to my source term derivation (especially
not in the Analysis schedule block). However, this basically gives
me NaNs during runtime. Still, when I produce output of the
respective quantities, everything works fine - it seems that only
the quantity storing the average value is not available for all
processes during runtime.</p>
<p>Maybe you have a hint for me - I am sure I am missing something
basic.</p>
<p>Thank you very much for your input and my best from Valencia</p>
<p>Jens<br>
</p>
</body>
</html>