include include # ING_UAXES -- Set user axis procedure ing_uaxesd (keynum, in, nl, x, y, z, npts, nvars) int keynum # Key number for axes pointer in # INLFIT pointer pointer nl # NLFIT pointer double x[ARB] # Independent variable double y[npts] # Dependent variable double z[npts] # Output values int npts # Number of points int nvars # Number of variables int npars # number of parameters int uaxes # user defined procedure pointer params # parameter values pointer sp int nlstati() int in_geti() begin # Check if equation is defined uaxes = in_geti (in, INLUAXES) if (!IS_INDEFI (uaxes)) { # Get number of parameters, allocate space # for parameter values, and get parameter values npars = nlstati (nl, NLNPARAMS) call smark (sp) call salloc (params, npars, TY_DOUBLE) call nlpgetd (nl, Memd[params], npars) # Call user plot functions call zcall8 (uaxes, keynum, Memd[params], npars, x, y, z, npts, nvars) # Free memory call sfree (sp) } else call eprintf ("Warning: User plot function not defined\n") end