2 SUBROUTINE trdot2(KW,AGE,TM,TN,TSCLS,DTM,DTR)
8 REAL*8 age,tm,tn,tscls(20),dtm,dtr
10 parameter(pts1=0.05d0,pts2=0.02d0)
20 dtm = pts1*(tscls(1) - tm)
23 if(age.lt.tscls(6))
then
24 dtm = pts2*(tscls(4) - age)
26 dtm = pts2*(tscls(5) - age)
28 dtr = min(tscls(2),tn) - age
31 dtr = min(tn,tscls(2) + tscls(3)) - age
33 if(age.lt.tscls(9))
then
34 dtm = pts2*(tscls(7) - age)
36 dtm = pts2*(tscls(8) - age)
38 dtr = min(tn,tscls(13)) - age
40 if(age.lt.tscls(12))
then
41 dtm = pts2*(tscls(10) - age)
43 dtm = pts2*(tscls(11) - age)
50 elseif(kw.eq.8.or.kw.eq.9)
then
51 if(age.lt.tscls(6))
then
52 dtm = pts2*(tscls(4) - age)
54 dtm = pts2*(tscls(5) - age)
59 dtm = max(dtm,1.0d-07)