EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  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  <20032004  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
Dirk Zimoch wrote:
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




In the latest 3.13 and 3.14 I find



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));

Marty Kraimer


References:
calcPerform Dirk Zimoch

Navigate by Date:
Prev: calcPerform Dirk Zimoch
Next: Re: Base 3.14.1 build problem on Darwin Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: calcPerform Dirk Zimoch
Next: Re: Base 3.14.1 build problem on Darwin Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·