1994 1995 1996 1997 1998 1999 2000 2001 2002 <2003> 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 <2003> 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: calcPerform |
From: | Marty Kraimer <[email protected]> |
To: | Dirk Zimoch <[email protected]> |
Cc: | TECHTALK <[email protected]> |
Date: | Thu, 13 Mar 2003 11:04:36 -0600 |
Hi folks,
some time ago, Timo Korhonen has patched the calcPerform function to return -1 (=error) if the result of the calculation is nan. This has been done to raise an INVALID_ALARM and not to process the OUT link if IVOA="Don't drive outputs". (That required a patch of the calcout record, too. But that's an other story.)
My question is: should calcPerform return -1 as well if the result is inf (or -inf) ?
Awaiting your comments, Dirk
grep isnan *.c calcPerform.c: return(((isnan(*presult)||isinf(*presult)) ? -1 : 0)); sCalcPerform.c: if (isnan(ps->d)) { sCalcPerform.c: if (isnan(*pd)) { sCalcPerform.c: return(((isnan(*presult)||isinf(*presult)) ? -1 : 0));