2
3
4
5
6
7
8
9 INTEGER ICTXT, IPOST, IPRE, LDA, M, N
10 REAL CHKVAL
11
12
13 REAL A( * )
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61 INTEGER I, J, K
62
63
64
65
66
67 IF( ipre.GT.0 ) THEN
68 DO 10 i = 1, ipre
69 a( i ) = chkval
70 10 CONTINUE
71 ELSE
72 WRITE( *, fmt = * ) 'WARNING no pre-guardzone in PSFILLPAD'
73 END IF
74
75
76
77 IF( ipost.GT.0 ) THEN
78 j = ipre+lda*n+1
79 DO 20 i = j, j+ipost-1
80 a( i ) = chkval
81 20 CONTINUE
82 ELSE
83 WRITE( *, fmt = * ) 'WARNING no post-guardzone in PSFILLPAD'
84 END IF
85
86
87
88 IF( lda.GT.m ) THEN
89 k = ipre + m + 1
90 DO 40 j = 1, n
91 DO 30 i = k, k + (lda-m) - 1
92 a( i ) = chkval
93 30 CONTINUE
94 k = k + lda
95 40 CONTINUE
96 END IF
97
98 RETURN
99
100
101