aboutsummaryrefslogtreecommitdiff
path: root/pkg/xtools/inlfit/ingshow.gx
blob: 28efcc6e2ed5682744cb4c6d89bbd73750edd80e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include	<pkg/inlfit.h>


# ING_SHOW -- Show the values of all the user defined parameters that
# can be changed with colon commands. The output can be any file.

procedure ing_show$t (in, file)

pointer	in			# INLFIT pointer
char	file[ARB]		# Output file

int	fd
int	open(), in_geti()
PIXEL	in_get$t
errchk	open()

begin
	# Open output file.
	if (file[1] == EOS)
	    return
	fd = open (file, APPEND, TEXT_FILE)

	# Print parameters.
	call fprintf (fd, "low_reject    %g\n")
	    call parg$t (in_get$t (in, INLLOW))
	call fprintf (fd, "high_reject   %g\n")
	    call parg$t (in_get$t (in, INLHIGH))
	call fprintf (fd, "nreject       %d\n")
	    call pargi (in_geti (in, INLNREJECT))
	call fprintf (fd, "grow          %g\n")
	    call parg$t (in_get$t (in, INLGROW))
	call fprintf (fd, "tol           %g\n")
	    call parg$t (in_get$t (in, INLTOLERANCE))
	call fprintf (fd, "maxiter       %d\n")
	    call pargi (in_geti (in, INLMAXITER))
	call fprintf (fd, "\n")

	# Free memory and close file.
	call close (fd)
end