1 /*  -- translated by f2c (version 20100827).
2    You must link the resulting object file with libf2c:
3 	on Microsoft Windows system, link with libf2c.lib;
4 	on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 	or, if you install libf2c.a in a standard place, with -lf2c -lm
6 	-- in that order, at the end of the command line, as in
7 		cc *.o -lf2c -lm
8 	Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9 
10 		http://www.netlib.org/f2c/libf2c.zip
11 */
12 
13 #include "libtinyf2c.h"
14 
15 /* Table of constant values */
16 
17 static integer c__9 = 9;
18 static integer c__1 = 1;
19 static integer c__3 = 3;
20 static real c_b8 = -1.f;
21 static real c_b9 = 1.f;
22 static real c_b12 = .2f;
23 static real c_b13 = .8f;
24 static integer c__21 = 21;
25 
26 /* ----------------------------------------------------------------------- */
27 /*     Copyright (C) 2000-2004 GFD Dennou Club. All rights reserved. */
28 /* ----------------------------------------------------------------------- */
MAIN__(void)29 /* Main program */ int MAIN__(void)
30 {
31     /* Builtin functions */
32     integer s_wsle(cilist *), do_lio(integer *, integer *, char *, ftnlen),
33 	    e_wsle(void), s_rsle(cilist *), e_rsle(void);
34 
35     /* Local variables */
36     static integer i__, j;
37     static real u[441]	/* was [21][21] */, v[441]	/* was [21][21] */, x,
38 	     y;
39     static integer iws;
40     extern /* Subroutine */ int grcls_(void), grfrm_(void), gropn_(integer *),
41 	     ugvect_(real *, integer *, real *, integer *, integer *, integer
42 	    *), grswnd_(real *, real *, real *, real *), grstrf_(void),
43 	    usdaxs_(void), grstrn_(integer *), sgpwsn_(void), grsvpt_(real *,
44 	    real *, real *, real *);
45 
46     /* Fortran I/O blocks */
47     static cilist io___7 = { 0, 6, 0, 0, 0 };
48     static cilist io___8 = { 0, 5, 0, 0, 0 };
49 
50 
51 /* -- 2次元ベクトルデータ: 変形場 ---- */
52     for (j = 1; j <= 21; ++j) {
53 	for (i__ = 1; i__ <= 21; ++i__) {
54 	    x = (i__ - 1) * 2.f / 20 - 1.f;
55 	    y = (j - 1) * 2.f / 20 - 1.f;
56 	    u[i__ + j * 21 - 22] = x;
57 	    v[i__ + j * 21 - 22] = -y;
58 /* L10: */
59 	}
60 /* L20: */
61     }
62 /* -- グラフ ---- */
63     s_wsle(&io___7);
64     do_lio(&c__9, &c__1, " WORKSTATION ID (I)  ? ;", (ftnlen)24);
65     e_wsle();
66     sgpwsn_();
67     s_rsle(&io___8);
68     do_lio(&c__3, &c__1, (char *)&iws, (ftnlen)sizeof(integer));
69     e_rsle();
70     gropn_(&iws);
71     grfrm_();
72     grswnd_(&c_b8, &c_b9, &c_b8, &c_b9);
73     grsvpt_(&c_b12, &c_b13, &c_b12, &c_b13);
74     grstrn_(&c__1);
75     grstrf_();
76     usdaxs_();
77     ugvect_(u, &c__21, v, &c__21, &c__21, &c__21);
78     grcls_();
79     return 0;
80 } /* MAIN__ */
81 
quick5_()82 /* Main program alias */ int quick5_ () { MAIN__ (); return 0; }
83