-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalpar.f
executable file
·445 lines (438 loc) · 17.2 KB
/
calpar.f
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
SUBROUTINE CALPAR
IMPLICIT DOUBLE PRECISION (A-H,O-Z)
COMMON /ONELEC/ USS(107),UPP(107),UDD(107)
1 /ATOMIC/ EISOL(107),EHEAT(107)
2 /ALPHA / ALP(107)
3 /EXPONT/ ZS(107),ZP(107),ZD(107)
4 /GAUSS / FN1(107),FN2(107)
5 /BETAS / BETAS(107),BETAP(107),BETAD(107)
6 /TWOELE/ GSS(107),GSP(107),GPP(107),GP2(107),HSP(107),
7 GSD(107),GPD(107),GDD(107)
8 /IDEAS / GUESS1(107,10), GUESS2(107,10), GUESS3(107,10)
COMMON /MNDO/ USSM(107), UPPM(107), UDDM(107), ZSM(107),ZPM(107),
1ZDM(107), BETASM(107), BETAPM(107), BETADM(107), ALPM(107),
2EISOLM(107), DDM(107), QQM(107), AMM(107), ADM(107), AQM(107)
3,GSSM(107),GSPM(107),GPPM(107),GP2M(107),HSPM(107), POLVOM(107)
COMMON /KEYWRD/ KEYWRD
COMMON/MULTIP/ DD(107),QQ(107),AM(107),AD(107),AQ(107)
C* SHIHAO'S MODIFICATION START *************************************
C* Added:
C* Additional user-defined parameters
COMMON /UDPAR/ UDEISOL(107),UDDD(107),UDQQ(107),UDRHO0(107),
1 UDRHO1(107),UDRHO2(107)
COMMON /MOLMEC/ HTYPE(4),NHCO(4,20),NNHCO,ITYPE
C* SHIHAO'S MODIFICATION END ***************************************
DIMENSION NSPQN(107)
CHARACTER KEYWRD*241
DIMENSION USSC(107), UPPC(107), GSSC(107), GSPC(107), HSPC(107),
1GP2C(107), GPPC(107), UDDC(107), GSDC(107), GDDC(107)
SAVE NSPQN, USSC, UPPC, UDDC, GSSC, GSPC, HSPC, GP2C, GSDC, GDDC
DATA NSPQN/2*1,8*2,8*3,18*4,18*5,32*6,21*0/
C
C THE CONTINUATION LINES INDICATE THE PRINCIPAL QUANTUM NUMBER.
C
DATA USSC/
11.D0, 0.D0,
21.D0, 6*2.D0,0.D0,
31.D0, 6*2.D0,0.D0,
41.D0,4*2.D0,1.D0,4*2.D0,1.D0, 6*2.D0,0.D0,
51.D0,3*2.D0,2*1.D0,2.D0,2*1.D0,0.D0,1.D0, 6*2.D0,0.D0,
61.D0,22*2.D0,1.D0,1.D0, 6*2.D0,0.D0,
721*0.D0/
DATA UPPC/
1 2*0.D0,
2 2*0.D0,1.D0,2.D0,3.D0,4.D0,5.D0,6.D0,
3 2*0.D0,1.D0,2.D0,3.D0,4.D0,5.D0,6.D0,
412*0.D0,1.D0,2.D0,3.D0,4.D0,5.D0,6.D0,
512*0.D0,1.D0,2.D0,3.D0,4.D0,5.D0,6.D0,
626*0.D0,1.D0,2.D0,3.D0,4.D0,5.D0,6.D0,
721*0.D0/
DATA UDDC/18*0.D0,
1 2*0.D0,1.D0,2.D0,3.D0,5.D0,5.D0,6.D0,7.D0,8.D0,1.D1,1.D1,6*0.D0,
2 2*0.D0,1.D0,2.D0,4.D0,5.D0,5.D0,7.D0,8.D0,1.D1,1.D1,1.D1,6*0.D0,
3 2*0.D0,1.D0,6*0.D0,1.D0,6*0.D0,1.D0,2.D0,3.D0,4.D0,
4 5.D0,6.D0,7.D0,9.D0,1.D1,1.D1,6*0.D0,
5 21*0.D0/
DATA GSSC/2*0.D0,
1 0.D0,6*1.D0,0.D0,
2 0.D0,6*1.D0,0.D0,
3 0.D0,4*1.D0,0.D0,4*1.D0,0.D0,6*1.D0,0.D0,
4 0.D0,3*1.D0,7*0.D0,6*1.D0,0.D0,
5 0.D0,22*1.D0,2*1.D0,6*1.D0,0.D0,
6 21*0.D0/
DATA GSPC/2*0.D0,
1 2*0.D0,2.D0,4.D0,6.D0,8.D0,10.D0,0.D0,
2 2*0.D0,2.D0,4.D0,6.D0,8.D0,10.D0,0.D0,
312*0.D0,2.D0,4.D0,6.D0,8.D0,10.D0,0.D0,
412*0.D0,2.D0,4.D0,6.D0,8.D0,10.D0,0.D0,
526*0.D0,2.D0,4.D0,6.D0,8.D0,10.D0,0.D0,
621*0.D0/
DATA HSPC/2*0.D0,
1 2*0.D0,-1.D0,-2.D0,-3.D0,-4.D0,-5.D0,0.D0,
2 2*0.D0,-1.D0,-2.D0,-3.D0,-4.D0,-5.D0,0.D0,
312*0.D0,-1.D0,-2.D0,-3.D0,-4.D0,-5.D0,0.D0,
412*0.D0,-1.D0,-2.D0,-3.D0,-4.D0,-5.D0,0.D0,
526*0.D0,-1.D0,-2.D0,-3.D0,-4.D0,-5.D0,0.D0,
621*0.D0/
DATA GP2C/2*0.D0,
1 3*0.D0,1.5D0,4.5D0,6.5D0,10.D0,0.D0,
2 3*0.D0,1.5D0,4.5D0,6.5D0,10.D0,0.D0,
313*0.D0,1.5D0,4.5D0,6.5D0,10.D0,0.D0,
413*0.D0,1.5D0,4.5D0,6.5D0,10.D0,0.D0,
527*0.D0,1.5D0,4.5D0,6.5D0,10.D0,0.D0,
621*0.D0/
DATA GPPC/2*0.D0,
1 3*0.D0,-0.5D0,-1.5D0,-0.5D0,2*0.D0,
2 3*0.D0,-0.5D0,-1.5D0,-0.5D0,2*0.D0,
313*0.D0,-0.5D0,-1.5D0,-0.5D0,2*0.D0,
413*0.D0,-0.5D0,-1.5D0,-0.5D0,2*0.D0,
527*0.D0,-0.5D0,-1.5D0,-0.5D0,2*0.D0,
621*0.D0/
7GSDC/18*0.D0,
8 2*0.D0,2.D0,4.D0,6.D0,5.D0,10.D0,12.D0,14.D0,16.D0,10.D0,7*0.D0,
9 2*0.D0,2.D0,4.D0,4.D0,5.D0,6.D0,7.D0,8.D0,0.D0,1.D1,7*0.D0,
1 2*0.D0,2.D0,6*0.D0,2.D0,6*0.D0,2.D0,4.D0,6.D0,8.D0,10.D0,12.D0,
2 14.D0,9.D0,10.D0,7*0.D0,
321*0.D0/
DATA GDDC/18*0.D0,
1 3*0.D0,1.D0,3.D0,10.D0,10.D0,15.D0,21.D0,28.D0,8*0.D0,
2 3*0.D0,1.D0,6.D0,10.D0,15.D0,21.D0,28.D0,45.D0,8*0.D0,
317*0.D0,1.D0,3.D0, 6.D0,10.D0,15.D0,21.D0,36.D0,8*0.D0,
421*0.D0/
C The DATA block shown above is derived from the ground-state atomic
C configuration of the elements. In checking it, pay careful attention
C to the actual ground-state configuration. Note also that there are no
C configurations which have both p and d electrons in the valence shell
C
C SET SCALING PARAMETER.
P=2.D0
P2=P*P
P4=P**4
DO 30 I=2,98
IF(ZP(I).LT.1.D-4.AND.ZS(I).LT.1.D-4)GOTO 30
IF(ZP(I).LT.0.3D0) ZP(I)=0.3D0
CC PUT IN ANY CONSTRAINTS AT THIS POINT
C**********************************************************************
HPP=0.5D0*(GPP(I)-GP2(I))
HPP=MAX(0.1D0,HPP)
HSP(I)=MAX(1.D-7,HSP(I))
**********************************************************************
*
* CONSTRAINTS ON THE POSSIBLE VALUES OF PARAMETERS
*
**********************************************************************
C* SHIHAO'S MODIFICATION START ************************************
C* Add
IF(ABS(UDEISOL(I)).LT.1.0D-6) THEN
EISOL(I)=USS(I)*USSC(I)+UPP(I)*UPPC(I)+UDD(I)*UDDC(I)+
1 GSS(I)*GSSC(I)+GPP(I)*GPPC(I)+GSP(I)*GSPC(I)+
2 GP2(I)*GP2C(I)+HSP(I)*HSPC(I)+GSD(I)*GSDC(I)+
3 GDD(I)*GDDC(I)
ELSE
EISOL(I)=UDEISOL(I)
ENDIF
QN=NSPQN(I)
IF(ABS(UDDD(I)).LT.1.0D-6) THEN
DD(I)=(2.D0*QN+1)*(4.D0*ZS(I)*ZP(I))**(QN+0.5D0)
1 /(ZS(I)+ZP(I))**(2.D0*QN+2)/SQRT(3.D0)
ELSE
DD(I)=UDDD(I)
ENDIF
DDM(I)=DD(I)
IF(ABS(UDQQ(I)).LT.1.0D-6) THEN
QQ(I)=SQRT((4.D0*QN*QN+6.D0*QN+2.D0)/20.D0)/ZP(I)
ELSE
QQ(I)=UDQQ(I)
ENDIF
QQM(I)=QQ(I)
C* Remove
C EISOL(I)=USS(I)*USSC(I)+UPP(I)*UPPC(I)+UDD(I)*UDDC(I)+
C 1 GSS(I)*GSSC(I)+GPP(I)*GPPC(I)+GSP(I)*GSPC(I)+
C 2 GP2(I)*GP2C(I)+HSP(I)*HSPC(I)+GSD(I)*GSDC(I)+
C 3 GDD(I)*GDDC(I)
C QN=NSPQN(I)
C DD(I)=(2.D0*QN+1)*(4.D0*ZS(I)*ZP(I))**(QN+0.5D0)/(ZS(I)+ZP(I))
C 1**(2.D0*QN+2)/SQRT(3.D0)
C DDM(I)=DD(I)
C QQ(I)=SQRT((4.D0*QN*QN+6.D0*QN+2.D0)/20.D0)/ZP(I)
C QQM(I)=QQ(I)
C* SHIHAO'S MODIFICATION END **************************************
C CALCULATE ADDITIVE TERMS, IN ATOMIC UNITS.
JMAX=5
GDD1= (P2*HSP(I)/(27.21* 4.*DD(I)**2))**(1./3.)
GQQ= (P4*HPP/(27.21*48.*QQ(I)**4))**0.2
D1=GDD1
D2=GDD1+0.04
Q1=GQQ
Q2=GQQ+0.04
DO 10 J=1,JMAX
DF=D2-D1
HSP1= 2.*D1 - 2./SQRT(4.*DD(I)**2+1./D1**2)
HSP2= 2.*D2 - 2./SQRT(4.*DD(I)**2+1./D2**2)
HSP1= HSP1/P2
HSP2= HSP2/P2
D3= D1 + DF*(HSP(I)/27.21-HSP1)/(HSP2-HSP1)
D1= D2
D2= D3
10 CONTINUE
DO 20 J=1,JMAX
QF=Q2-Q1
HPP1= 4.*Q1 - 8./SQRT(4.*QQ(I)**2+1./Q1**2)
1 + 4./SQRT(8.*QQ(I)**2+1./Q1**2)
HPP2= 4.*Q2 - 8./SQRT(4.*QQ(I)**2+1./Q2**2)
1 + 4./SQRT(8.*QQ(I)**2+1./Q2**2)
HPP1= HPP1/P4
HPP2= HPP2/P4
Q3= Q1 + QF*(HPP/27.21-HPP1)/(HPP2-HPP1)
Q1= Q2
Q2= Q3
20 CONTINUE
AM(I)= GSS(I)/27.21
AD(I)= D2
AQ(I)= Q2
C* SHIHAO'S MODIFICATION START ************************************
C* Add
IF(ABS(UDRHO0(I)).GT.1.0D-6) AM(I)=0.5/UDRHO0(I)
IF(ABS(UDRHO1(I)).GT.1.0D-6) AD(I)=0.5/UDRHO1(I)
IF(ABS(UDRHO2(I)).GT.1.0D-6) AQ(I)=0.5/UDRHO2(I)
C* SHIHAO'S MODIFICATION END **************************************
AMM(I)=AM(I)
ADM(I)=AD(I)
AQM(I)=AQ(I)
30 CONTINUE
C* SHIHAO'S MODIFICATION START ************************************
C* Add
IF(ABS(UDEISOL(1)).LT.1.0D-6) THEN
EISOL(1)=USS(1)
ELSE
EISOL(1)=UDEISOL(1)
ENDIF
C* Remove
C EISOL(1)=USS(1)
C* SHIHAO'S MODIFICATION END **************************************
AM(1)=GSS(1)/27.21D0
AD(1)=AM(1)
AQ(1)=AM(1)
C* SHIHAO'S MODIFICATION START ************************************
C* Add
IF(ABS(UDRHO0(1)).GT.1.0D-6) AM(1)=0.5/UDRHO0(1)
IF(ABS(UDRHO1(1)).GT.1.0D-6) AD(1)=0.5/UDRHO1(1)
IF(ABS(UDRHO2(1)).GT.1.0D-6) AQ(1)=0.5/UDRHO2(1)
C* SHIHAO'S MODIFICATION END **************************************
AMM(1)=AM(1)
ADM(1)=AD(1)
AQM(1)=AQ(1)
C
C DEBUG PRINTING.
C THIS IS FORMATTED FOR DIRECT INSERTION INTO 'PARAM'
C
IF(INDEX(KEYWRD,'DEP').EQ.0) RETURN
WRITE(6,50)
50 FORMAT(1H ,1X,'OUTPUT INCLUDES DEBUG INFORMATION',//)
IF(INDEX(KEYWRD,' AM1').NE.0) THEN
DO 60 I=1,107
IF(ZS(I).EQ.0) GOTO 60
WRITE(6,'(''C'',20X,''DATA FOR ELEMENT'',I3)')I
WRITE(6,'(6X,''DATA USSAM1('',I3,'')/'',F16.7,''D0/'')')
1 I,USS(I)
IF(UPP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA UPPAM1('',I3,'')/'',F16.7,''D0/'')')I,UPP(I)
IF(UDD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA UDDAM1('',I3,'')/'',F16.7,''D0/'')')I,UDD(I)
IF(BETAS(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETASA('',I3,'')/'',F16.7,''D0/'')')
2I,BETAS(I)
IF(BETAP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETAPA('',I3,'')/'',F16.7,''D0/'')')
2I,BETAP(I)
IF(BETAD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETADA('',I3,'')/'',F16.7,''D0/'')')
2I,BETAD(I)
WRITE(6,'(6X,''DATA ZSAM1 ('',I3,'')/'',F16.7,''D0/'')')
1I,ZS(I)
IF(ZP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ZPAM1 ('',I3,'')/'',F16.7,''D0/'')')I,ZP(I)
IF(ZD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ZDAM1 ('',I3,'')/'',F16.7,''D0/'')')I,ZD(I)
WRITE(6,'(6X,''DATA ALPAM1('',I3,'')/'',F16.7,''D0/'')')
1I,ALP(I)
WRITE(6,'(6X,''DATA EISOLA('',I3,'')/'',F16.7,''D0/'')')
1I,EISOL(I)
IF(GSS(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GSSAM1('',I3,'')/'',F16.7,''D0/'')')
2I,GSS(I)
IF(GSP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GSPAM1('',I3,'')/'',F16.7,''D0/'')')
2I,GSP(I)
IF(GPP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GPPAM1('',I3,'')/'',F16.7,''D0/'')')
2I,GPP(I)
IF(GP2(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GP2AM1('',I3,'')/'',F16.7,''D0/'')')
2I,GP2(I)
IF(HSP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA HSPAM1('',I3,'')/'',F16.7,''D0/'')')
2I,HSP(I)
IF(DD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA DDAM1 ('',I3,'')/'',F16.7,''D0/'')')I,DD(I)
IF(QQ(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA QQAM1 ('',I3,'')/'',F16.7,''D0/'')')I,QQ(I)
WRITE(6,'(6X,''DATA AMAM1 ('',I3,'')/'',F16.7,''D0/'')')
1I,AM(I)
IF(AD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ADAM1 ('',I3,'')/'',F16.7,''D0/'')')I,AD(I)
IF(AQ(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA AQAM1 ('',I3,'')/'',F16.7,''D0/'')')I,AQ(I)
IF(FN1(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA FN1AM1('',I3,'')/'',F16.7,''D0/'')')I,FN1(I)
IF(FN2(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA FN2AM1('',I3,'')/'',F16.7,''D0/'')')I,FN2(I)
DO 40 J=1,10
IF(GUESS1(I,J) .EQ.0.D0) GOTO 40
WRITE(6,'(6X,''DATA GUESA1('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS1(I,J)
WRITE(6,'(6X,''DATA GUESA2('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS2(I,J)
WRITE(6,'(6X,''DATA GUESA3('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS3(I,J)
40 CONTINUE
60 CONTINUE
ELSEIF(INDEX(KEYWRD,' PM3').NE.0)THEN
DO 62 I=1,107
IF(ZS(I).EQ.0) GOTO 62
WRITE(6,'(''C'',20X,''DATA FOR ELEMENT'',I3)')I
WRITE(6,'(6X,''DATA USSPM3('',I3,'')/'',F16.7,''D0/'')')
1 I,USS(I)
IF(UPP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA UPPPM3('',I3,'')/'',F16.7,''D0/'')')I,UPP(I)
IF(UDD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA UDDPM3('',I3,'')/'',F16.7,''D0/'')')I,UDD(I)
IF(BETAS(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETASP('',I3,'')/'',F16.7,''D0/'')')
2I,BETAS(I)
IF(BETAP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETAPP('',I3,'')/'',F16.7,''D0/'')')
2I,BETAP(I)
IF(BETAD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETADP('',I3,'')/'',F16.7,''D0/'')')
2I,BETAD(I)
WRITE(6,'(6X,''DATA ZSPM3 ('',I3,'')/'',F16.7,''D0/'')')
1I,ZS(I)
IF(ZP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ZPPM3 ('',I3,'')/'',F16.7,''D0/'')')I,ZP(I)
IF(ZD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ZDPM3 ('',I3,'')/'',F16.7,''D0/'')')I,ZD(I)
WRITE(6,'(6X,''DATA ALPPM3('',I3,'')/'',F16.7,''D0/'')')
1I,ALP(I)
WRITE(6,'(6X,''DATA EISOLP('',I3,'')/'',F16.7,''D0/'')')
1I,EISOL(I)
IF(GSS(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GSSPM3('',I3,'')/'',F16.7,''D0/'')')
2I,GSS(I)
IF(GSP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GSPPM3('',I3,'')/'',F16.7,''D0/'')')
2I,GSP(I)
IF(GPP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GPPPM3('',I3,'')/'',F16.7,''D0/'')')
2I,GPP(I)
IF(GP2(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GP2PM3('',I3,'')/'',F16.7,''D0/'')')
2I,GP2(I)
IF(HSP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA HSPPM3('',I3,'')/'',F16.7,''D0/'')')
2I,HSP(I)
IF(DD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA DDPM3 ('',I3,'')/'',F16.7,''D0/'')')I,DD(I)
IF(QQ(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA QQPM3 ('',I3,'')/'',F16.7,''D0/'')')I,QQ(I)
WRITE(6,'(6X,''DATA AMPM3 ('',I3,'')/'',F16.7,''D0/'')')
1I,AM(I)
IF(AD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ADPM3 ('',I3,'')/'',F16.7,''D0/'')')I,AD(I)
IF(AQ(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA AQPM3 ('',I3,'')/'',F16.7,''D0/'')')I,AQ(I)
IF(FN1(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA FN1PM3('',I3,'')/'',F16.7,''D0/'')')I,FN1(I)
IF(FN2(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA FN2PM3('',I3,'')/'',F16.7,''D0/'')')I,FN2(I)
DO 42 J=1,10
IF(GUESS1(I,J) .EQ.0.D0) GOTO 42
WRITE(6,'(6X,''DATA GUESP1('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS1(I,J)
WRITE(6,'(6X,''DATA GUESP2('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS2(I,J)
WRITE(6,'(6X,''DATA GUESP3('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS3(I,J)
42 CONTINUE
62 CONTINUE
ELSE
DO 64 I=1,107
IF(ZS(I).EQ.0) GOTO 64
WRITE(6,'(''C'',20X,''DATA FOR ELEMENT'',I3)')I
WRITE(6,'(6X,''DATA USSM ('',I3,'')/'',F16.7,''D0/'')')
1 I,USS(I)
IF(UPP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA UPPM ('',I3,'')/'',F16.7,''D0/'')')I,UPP(I)
IF(UDD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA UDDM ('',I3,'')/'',F16.7,''D0/'')')I,UDD(I)
IF(BETAS(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETASM('',I3,'')/'',F16.7,''D0/'')')
2I,BETAS(I)
IF(BETAP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETAPM('',I3,'')/'',F16.7,''D0/'')')
2I,BETAP(I)
IF(BETAD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA BETADM('',I3,'')/'',F16.7,''D0/'')')
2I,BETAD(I)
WRITE(6,'(6X,''DATA ZSM ('',I3,'')/'',F16.7,''D0/'')')
1I,ZS(I)
IF(ZP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ZPM ('',I3,'')/'',F16.7,''D0/'')')I,ZP(I)
IF(ZD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ZDM ('',I3,'')/'',F16.7,''D0/'')')I,ZD(I)
WRITE(6,'(6X,''DATA ALPM ('',I3,'')/'',F16.7,''D0/'')')
1I,ALP(I)
WRITE(6,'(6X,''DATA EISOLM('',I3,'')/'',F16.7,''D0/'')')
1I,EISOL(I)
IF(GSS(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GSSM ('',I3,'')/'',F16.7,''D0/'')')
2I,GSS(I)
IF(GSP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GSPM ('',I3,'')/'',F16.7,''D0/'')')
2I,GSP(I)
IF(GPP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GPPM ('',I3,'')/'',F16.7,''D0/'')')
2I,GPP(I)
IF(GP2(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA GP2M ('',I3,'')/'',F16.7,''D0/'')')
2I,GP2(I)
IF(HSP(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA HSPM ('',I3,'')/'',F16.7,''D0/'')')
2I,HSP(I)
IF(DD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA DDM ('',I3,'')/'',F16.7,''D0/'')')I,DD(I)
IF(QQ(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA QQM ('',I3,'')/'',F16.7,''D0/'')')I,QQ(I)
WRITE(6,'(6X,''DATA AMM ('',I3,'')/'',F16.7,''D0/'')')
1I,AM(I)
IF(AD(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA ADM ('',I3,'')/'',F16.7,''D0/'')')I,AD(I)
IF(AQ(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA AQM ('',I3,'')/'',F16.7,''D0/'')')I,AQ(I)
IF(FN1(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA FN1M ('',I3,'')/'',F16.7,''D0/'')')I,FN1(I)
IF(FN2(I) .NE. 0.D0)
1WRITE(6,'(6X,''DATA FN2M ('',I3,'')/'',F16.7,''D0/'')')I,FN2(I)
DO 44 J=1,10
IF(GUESS1(I,J) .EQ.0.D0) GOTO 44
WRITE(6,'(6X,''DATA GUESP1('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS1(I,J)
WRITE(6,'(6X,''DATA GUESP2('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS2(I,J)
WRITE(6,'(6X,''DATA GUESP3('',I3,'','',I1,'')/'',
1F16.7,''D0/'')')I,J,GUESS3(I,J)
44 CONTINUE
64 CONTINUE
ENDIF
RETURN
END