From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- math/surfit/iszero.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 math/surfit/iszero.x (limited to 'math/surfit/iszero.x') 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 -- cgit