Changeset 1201 for LMDZ4/branches/LMDZ4-dev/libf/dyn3d/leapfrog.F
- Timestamp:
- Jul 7, 2009, 4:01:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/dyn3d/leapfrog.F
r1190 r1201 1 ! 2 ! $Id$ 1 3 ! 2 4 c … … 112 114 c 113 115 INTEGER itau,itaufinp1,iav 114 INTEGER*4iday ! jour julien115 REAL time ! Heure de la journee en fraction d'1 jour116 ! INTEGER iday ! jour julien 117 REAL time 116 118 117 119 REAL SSUM … … 125 127 real time_step, t_wrt, t_ops 126 128 127 REAL rdayvrai,rdaym_ini 129 ! REAL rdayvrai,rdaym_ini 130 ! jD_cur: jour julien courant 131 ! jH_cur: heure julienne courante 132 REAL :: jD_cur, jH_cur 133 INTEGER :: an, mois, jour 134 REAL :: secondes 135 128 136 LOGICAL first,callinigrads 129 137 cIM : pour sortir les param. du modele dans un fis. netcdf 110106 130 138 save first 131 139 data first/.true./ 132 real dt_cum , zjulian140 real dt_cum 133 141 character*10 infile 134 142 integer zan, tau0, thoriid … … 167 175 character*80 abort_message 168 176 169 C Calendrier170 LOGICAL true_calendar171 PARAMETER (true_calendar = .false.)172 173 177 logical dissip_conservative 174 178 save dissip_conservative … … 193 197 194 198 itau = 0 195 iday = day_ini+itau/day_step196 time = FLOAT(itau-(iday-day_ini)*day_step)/day_step+time_0197 IF(time.GT.1.) THEN198 time = time-1.199 iday = iday+1200 ENDIF199 c$$$ iday = day_ini+itau/day_step 200 c$$$ time = FLOAT(itau-(iday-day_ini)*day_step)/day_step+time_0 201 c$$$ IF(time.GT.1.) THEN 202 c$$$ time = time-1. 203 c$$$ iday = iday+1 204 c$$$ ENDIF 201 205 202 206 … … 214 218 215 219 1 CONTINUE 220 221 jD_cur = jD_ref + (day_ini - 1) + int (itau * dtvr / daysec) 222 jH_cur = jH_ref + & 223 & (itau * dtvr / daysec - int(itau * dtvr / daysec)) 216 224 217 225 … … 284 292 CALL geopot ( ip1jmp1, teta , pk , pks, phis , phi ) 285 293 294 time = jD_cur + jH_cur 286 295 CALL caldyn 287 296 $ ( itau,ucov,vcov,teta,ps,masse,pk,pkf,phis , 288 $ phi,conser,du,dv,dteta,dp,w, pbaru,pbarv, time +iday-day_ini)297 $ phi,conser,du,dv,dteta,dp,w, pbaru,pbarv, time ) 289 298 290 299 … … 345 354 CALL exner_hyb( ip1jmp1, ps, p,alpha,beta,pks, pk, pkf ) 346 355 347 rdaym_ini = itau * dtvr / daysec 348 rdayvrai = rdaym_ini + day_ini 349 356 ! rdaym_ini = itau * dtvr / daysec 357 ! rdayvrai = rdaym_ini + day_ini 358 jD_cur = jD_ref + (day_ini - 1) + int (itau * dtvr / daysec) 359 jH_cur = jH_ref + & 360 & (itau * dtvr / daysec - int(itau * dtvr / daysec)) 361 ! write(lunout,*)'itau, jD_cur = ', itau, jD_cur, jH_cur 362 ! call ju2ymds(jD_cur+jH_cur, an, mois, jour, secondes) 363 ! write(lunout,*)'current date = ',an, mois, jour, secondes 350 364 351 365 c rajout debug … … 379 393 #endif 380 394 ! #endif of #ifdef CPP_IOIPSL 381 CALL calfis( lafin , rdayvrai,time,395 CALL calfis( lafin , jD_cur, jH_cur, 382 396 $ ucov,vcov,teta,q,masse,ps,p,pk,phis,phi , 383 397 $ du,dv,dteta,dq, … … 507 521 IF(forward. OR. leapf) THEN 508 522 itau= itau + 1 509 iday= day_ini+itau/day_step510 time= FLOAT(itau-(iday-day_ini)*day_step)/day_step+time_0511 IF(time.GT.1.) THEN512 time = time-1.513 iday = iday+1514 ENDIF523 c$$$ iday= day_ini+itau/day_step 524 c$$$ time= FLOAT(itau-(iday-day_ini)*day_step)/day_step+time_0 525 c$$$ IF(time.GT.1.) THEN 526 c$$$ time = time-1. 527 c$$$ iday = iday+1 528 c$$$ ENDIF 515 529 ENDIF 516 530 … … 632 646 633 647 itau = itau + 1 634 iday = day_ini+itau/day_step635 time = FLOAT(itau-(iday-day_ini)*day_step)/day_step+time_0636 637 IF(time.GT.1.) THEN638 time = time-1.639 iday = iday+1640 ENDIF648 c$$$ iday = day_ini+itau/day_step 649 c$$$ time = FLOAT(itau-(iday-day_ini)*day_step)/day_step+time_0 650 c$$$ 651 c$$$ IF(time.GT.1.) THEN 652 c$$$ time = time-1. 653 c$$$ iday = iday+1 654 c$$$ ENDIF 641 655 642 656 forward = .FALSE.
Note: See TracChangeset
for help on using the changeset viewer.