Changeset 5390 for LMDZ6/trunk/libf/phylmd/rrtm/dates.F90
- Timestamp:
- Dec 5, 2024, 5:09:25 PM (10 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/rrtm/dates.F90
r1990 r5390 52 52 53 53 IMPLICIT NONE 54 end 54 end subroutine dates_demo 55 55 subroutine date_plus_ech(kan,kmo,kqu,psssss,pstati,cdtit) 56 56 ! -------------------------------------------------------------- … … 157 157 &,' VALID ',iquv,'.',imov,'.',ianv,' ',ihev,':',imiv,' UTC' 158 158 endif 159 end 159 end subroutine date_plus_ech 160 160 161 subroutine datc(kaaaa,kmm,kqq,khh,kmi,kss,kjs,cdjs,cddt) 161 162 ! -------------------------------------------------------------- … … 245 246 write(cddt,fmt='(i4.4,a,2(i2.2,a),2a,i2.2,a,i2.2,a,i2.2)') & 246 247 &kaaaa,'_',kmm,'_',kqq,'_',cdjs,'_',khh,':',kmi,':',kss 247 end 248 end subroutine datc 249 248 250 subroutine amqhms_vers_dj(kaaaa,kmm,kqq,khh,kmn,ps,pdj) 249 251 ! -------------------------------------------------------------------------- … … 298 300 pdj=2451545.0- 0.5 +real(iecart)+real(khh)/24. & 299 301 & +real(kmn)/1440.+ps/86400. 300 end 302 end subroutine amqhms_vers_dj 303 301 304 subroutine daplus(kdat1,kopt,kdelt,kdat2) 302 305 ! -------------------------------------------------------------------------- … … 350 353 igre=igre+kdelt 351 354 call gregoi(igre,kopt,kdat2) 352 end 355 end subroutine daplus 356 353 357 subroutine daplusj(k1,kec,k2) 354 358 ! -------------------------------------------------------------- … … 385 389 INTEGER(KIND=4) :: KEC 386 390 call daplus(k1,1,kec,k2) 387 end 391 end subroutine daplusj 392 388 393 subroutine dapluss(cd1,kec,cd2) 389 394 ! -------------------------------------------------------------- … … 462 467 is2=ireste 463 468 write(cd2,fmt='(i8,3i2.2)') iamq2,ih2,im2,is2 464 end 469 end subroutine dapluss 470 465 471 subroutine dj_vers_amqhms(pdj,kaaaa,kmm,kqq,khh,kmn,ps) 466 472 ! -------------------------------------------------------------------------- … … 536 542 kmn=int(zfrac) 537 543 ps=(zfrac-real(kmn))*60. 538 end 544 end subroutine dj_vers_amqhms 545 539 546 subroutine dj_vers_amqhmsree(pdj,pgrer) 540 547 ! -------------------------------------------------------------------------- … … 575 582 & + real(iqq)+real(ihh)/100. & 576 583 & + real(imn)/10000.+zs/1.E+06 577 end 584 end subroutine dj_vers_amqhmsree 585 578 586 subroutine amqhmsree_vers_dj(pgrer,pdj) 579 587 ! -------------------------------------------------------------------------- … … 623 631 ! 624 632 call amqhms_vers_dj(iaaaa,imm,iqq,ihh,imn,zs,pdj) 625 end 633 end subroutine amqhmsree_vers_dj 634 626 635 subroutine ecartd(kdat1,kdat2,kopt,kgre) 627 636 ! -------------------------------------------------------------------------- … … 679 688 call gregod(kdat2,kopt,igre2) 680 689 kgre=igre2-igre1 681 end 690 end subroutine ecartd 691 682 692 subroutine ecartdj(k1,k2,kec) 683 693 ! -------------------------------------------------------------- … … 718 728 INTEGER(KIND=4) :: KEC 719 729 call ecartd(k1,k2,1,kec) 720 end 730 end subroutine ecartdj 731 721 732 subroutine ecartds(cd1,cd2,kec) 722 733 ! -------------------------------------------------------------- … … 778 789 ! 779 790 kec=kecq*86400+(ih2-ih1)*3600+(im2-im1)*60+is2-is1 780 end 791 end subroutine ecartds 792 781 793 subroutine gregod(kdat,kopt,kgre) 782 794 ! -------------------------------------------------------------------------- … … 944 956 ! ** 3. Difference in2-in1 945 957 kgre=(in2-in1)*iconv+ifrjour 946 end 958 end subroutine gregod 959 947 960 subroutine gregoi(kgre,kopt,kdat) 948 961 ! -------------------------------------------------------------------------- … … 1093 1106 endif 1094 1107 kdat=idat 1095 end 1108 end subroutine gregoi 1096 1109 function ijoursem(kdat) 1097 1110 ! -------------------------------------------------------------------------- … … 1125 1138 iecart=igre-igredim 1126 1139 ijoursem=modulo(iecart,7) 1127 end 1140 end function ijoursem 1141 1128 1142 subroutine qqmmaa(kdatd,cdresd) 1129 1143 ! -------------------------------------------------------------------------- … … 1172 1186 write(cdresd,fmt='(a3,a1,i2,a1,i2.2,a1,i4.4)')& 1173 1187 &cljour,' ',iqq,'.',imm,'.',ian 1174 end 1188 end subroutine qqmmaa 1189 1175 1190 subroutine quant(kdate,kquant) 1176 1191 ! -------------------------------------------------------------- … … 1200 1215 call ecartdj(ibase,kdate,iec) 1201 1216 kquant=iec+1 1202 end 1217 end subroutine quant
Note: See TracChangeset
for help on using the changeset viewer.