diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/surfit/islzero.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'math/surfit/islzero.x')
-rw-r--r-- | math/surfit/islzero.x | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/math/surfit/islzero.x b/math/surfit/islzero.x new file mode 100644 index 00000000..03034f01 --- /dev/null +++ b/math/surfit/islzero.x @@ -0,0 +1,25 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "surfitdef.h" + +# ISLZERO -- Procedure to zero the accumulators for line number lineno. + +procedure islzero (sf, lineno) + +pointer sf # pointer to the surface descriptor +int lineno # line number +pointer xcptr + +begin + SF_NXPTS(sf) = 0 + + call aclrr (XMATRIX(SF_XMATRIX(sf)), + SF_XORDER(sf) * SF_NXCOEFF(sf)) + xcptr = SF_XCOEFF(sf) + (lineno - 1) * SF_NXCOEFF(sf) + call aclrr (XCOEFF(xcptr), SF_NXCOEFF(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 |