diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /math/surfit/iszero.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/surfit/iszero.x')
-rw-r--r-- | math/surfit/iszero.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/math/surfit/iszero.x b/math/surfit/iszero.x new file mode 100644 index 00000000..d453d1fd --- /dev/null +++ b/math/surfit/iszero.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "surfitdef.h" + +# ISZERO -- Procedure to zero the accumulators for line number lineno. + +procedure iszero (sf) + +pointer sf # pointer to the surface descriptor + +begin + SF_NXPTS(sf) = 0 + SF_NYPTS(sf) = 0 + + call aclrr (XMATRIX(SF_XMATRIX(sf)), + SF_XORDER(sf) * SF_NXCOEFF(sf)) + call aclrr (YMATRIX(SF_YMATRIX(sf)), + SF_YORDER(sf) * SF_NYCOEFF(sf)) + call aclrr (XCOEFF(SF_XCOEFF(sf)), SF_NXCOEFF(sf) * SF_NLINES(sf)) + call aclrr (COEFF(SF_COEFF(sf)), SF_NXCOEFF(sf) * SF_NYCOEFF(sf)) + + if (SF_WZ(sf) != NULL) + call mfree (SF_WZ(sf), MEM_TYPE) + if (SF_TLEFT(sf) != NULL) + call mfree (SF_TLEFT(sf), TY_INT) +end |