2 C---------------------------------------------------------------- MAN 20
4 C PROBLEM 2 - SEE COMPANION PAPER MAN 40
6 implicit real*8 (a
-h
, o
-z
)
7 REAL*8 ZETA
(4), FSPACE
(40000), TOL
(4), Z
(4) MAN
60
8 INTEGER M
(2), IPAR
(11), ISPACE
(2500), LTOL
(4) MAN
70
9 COMMON EPS
, DMU
, EPS4MU
, GAMMA
, XT MAN
80
10 EXTERNAL SOLUTN
, FSUB
, DFSUB
, GSUB
, DGSUB MAN
90
11 C DEFINE CONSTANTS, PRINT A HEADING. MAN 100
15 EPS4MU
= EPS**4
/DMU MAN
140
16 XT
= SQRT
(2.*(GAMMA
-1.)/GAMMA
) MAN
150
17 WRITE (6,99999) GAMMA
, XT
, EPS
, DMU
, EPS4MU MAN
160
18 C DEFINE NO. OF DIFFERENTIAL EQUATIONS. MAN 170
23 C INTERVAL ENDS MAN 220
26 C LOCATIONS OF SIDE CONDITIONS MAN 250
32 C A NONLINEAR PROBLEM MAN 310
34 C 4 COLLOCATION POINTS PER SUBINTERVAL MAN 330
36 C INITIAL UNIFORM MESH OF 10 SUBINTERVALS MAN 350
39 C DIMENSION OF REAL WORK ARRAY FSPACE IS 40000 MAN 380
40 IPAR
(5) = 40000 MAN
390
41 C DIMENSION OF INTEGER WORK ARRAY ISPACE IS 2500 MAN 400
42 IPAR
(6) = 2500 MAN
410
43 C (THESE DIMENSIONS OF FSPACE AND ISPACE MAN 420
44 C ENABLE COLSYS TO USE MESHES OF UP TO 192 INTERVALS.) MAN 430
45 C PRINT FULL OUTPUT. MAN 440
47 C INITIAL APPROXIMATION FOR NONLINEAR ITERATION IS PROVIDED MAN 460
50 C A REGULAR PROBLEM MAN 490
52 C NO FIXED POINTS IN THE MESH MAN 510
54 C TOLERANCES ON ALL COMPONENTS MAN 530
58 TOL
(I
) = 1.d
-5 MAN
570
61 CALL COLSYS
(NCOMP
, M
, ALEFT
, ARIGHT
, ZETA
, IPAR
, LTOL
, TOL
, MAN
600
62 * FIXPNT
, ISPACE
, FSPACE
, IFLAG
, FSUB
, DFSUB
, GSUB
, DGSUB
, SOLUTN
) MAN
610
63 C PRINT VALUES OF THE OBTAINED APPROXIMATE SOLUTION AT POINTS MAN 620
64 C X = 0,.05, ..., 1. MAN 630
66 WRITE (6,99998) MAN
650
68 DO 20 III
=1,NP1 MAN
670
69 CALL APPSLN
(X
, Z
, FSPACE
, ISPACE
) MAN
680
70 WRITE (6,99997) X
, Z MAN
690
74 99999 FORMAT (1H1
, 27HDIMPLING OF SPHERICAL CAPS
./8H GAMMA
=, MAN
730
75 * F7
.2
/6H XT
=, E12
.5
/6H EPS
=, E12
.5
/6H MU
=, E12
.5
/9H EPS**4
/M
,MAN
740
76 * 3HU
=, E12
.5
) MAN
750
77 99998 FORMAT (1H1
, 44H X PHI DPHI
, MAN
760
78 * 23H PSI DPSI
/) MAN
770
79 99997 FORMAT (6X
, F5
.2
, 4X
, 6E15
.5
) MAN
780