Changeset 1201 for LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/gcm.F
- Timestamp:
- Jul 7, 2009, 4:01:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/LMDZ4-dev/libf/dyn3dpar/gcm.F
r1200 r1201 1 1 ! 2 ! $ Header$2 ! $Id$ 3 3 ! 4 4 c … … 113 113 real time_step, t_wrt, t_ops 114 114 115 c REAL rdayvrai,rdaym_ini,rday_ecri116 c LOGICAL first117 115 118 116 LOGICAL call_iniphys … … 133 131 134 132 character (len=80) :: dynhist_file, dynhistave_file 135 character (len=20) :: modname136 character (len=80) :: abort_message137 138 C Calendrier139 LOGICAL true_calendar140 PARAMETER (true_calendar = .false.) 133 character (len=20) :: modname 134 character (len=80) :: abort_message 135 ! locales pour gestion du temps 136 INTEGER :: an, mois, jour 137 REAL :: heure 138 141 139 142 140 c----------------------------------------------------------------------- … … 165 163 166 164 167 c----------------------------------------------------------------------- 168 c Choix du calendrier 169 c ------------------- 170 171 #ifdef CPP_IOIPSL 172 if (true_calendar) then 173 call ioconf_calendar('gregorian') 174 else 175 call ioconf_calendar('360d') 176 endif 177 #endif 165 178 166 c---------------------------------------------------------------------- 179 167 c lecture des fichiers gcm.def ou run.def … … 221 209 #endif 222 210 endif ! of if (planet_type.eq."earth") 211 212 c----------------------------------------------------------------------- 213 c Choix du calendrier 214 c ------------------- 215 216 c calend = 'earth_365d' 217 218 #ifdef CPP_IOIPSL 219 if (calend == 'earth_360d') then 220 call ioconf_calendar('360d') 221 write(lunout,*)'CALENDRIER CHOISI: Terrestre a 360 jours/an' 222 else if (calend == 'earth_365d') then 223 call ioconf_calendar('noleap') 224 write(lunout,*)'CALENDRIER CHOISI: Terrestre a 365 jours/an' 225 else if (calend == 'earth_366d') then 226 call ioconf_calendar('gregorian') 227 write(lunout,*)'CALENDRIER CHOISI: Terrestre bissextile' 228 else 229 abort_message = 'Mauvais choix de calendrier' 230 call abort_gcm(modname,abort_message,1) 231 endif 232 #endif 223 233 224 234 IF (config_inca /= 'none') THEN … … 306 316 if (annee_ref .ne. anneeref .or. day_ref .ne. dayref) then 307 317 write(lunout,*) 308 . ' Attention les dates initiales lues dans le fichier'318 . 'GCM: Attention les dates initiales lues dans le fichier' 309 319 write(lunout,*) 310 320 . ' restart ne correspondent pas a celles lues dans ' … … 312 322 if (raz_date .ne. 1) then 313 323 write(lunout,*) 314 . ' On garde les dates du fichier restart'324 . 'GCM: On garde les dates du fichier restart' 315 325 else 316 326 annee_ref = anneeref 317 327 day_ref = dayref 318 day_ini = dayref328 day_ini = 1 319 329 itau_dyn = 0 320 330 itau_phy = 0 321 331 time_0 = 0. 322 332 write(lunout,*) 323 . ' On reinitialise a la date lue dans gcm.def'333 . 'GCM: On reinitialise a la date lue dans gcm.def' 324 334 endif 325 335 ELSE … … 327 337 endif 328 338 329 #ifdef CPP_IOIPSL 330 call ioconf_startdate(annee_ref,0,day_ref,0.) 331 #endif 339 mois = 1 340 heure = 0. 341 call ymds2ju(annee_ref, mois, day_ref, heure, jD_ref) 342 jH_ref = jD_ref - int(jD_ref) 343 jD_ref = int(jD_ref) 344 345 #ifdef CPP_IOIPSL 346 call ioconf_startdate(annee_ref,0,day_ref, 0.) 347 #endif 348 349 write(lunout,*)'DEBUG' 350 write(lunout,*)'annee_ref, mois, day_ref, heure, jD_ref' 351 write(lunout,*)annee_ref, mois, day_ref, heure, jD_ref 352 call ju2ymds(jD_ref+jH_ref,an, mois, jour, heure) 353 write(lunout,*)'jD_ref+jH_ref,an, mois, jour, heure' 354 write(lunout,*)jD_ref+jH_ref,an, mois, jour, heure 332 355 333 356 c nombre d'etats dans les fichiers demarrage et histoire … … 413 436 WRITE(lunout,300)day_ini,day_end 414 437 300 FORMAT('1'/,15x,'run du jour',i7,2x,'au jour',i7//) 438 call ju2ymds(jD_ref+day_ini-1,an, mois, jour, heure) 439 write (lunout,301)jour, mois, an 440 call ju2ymds(jD_ref+day_end-1,an, mois, jour, heure) 441 write (lunout,302)jour, mois, an 442 301 FORMAT('1'/,15x,'run du ', i2,'/',i2,'/',i4) 443 302 FORMAT('1'/,15x,' au ', i2,'/',i2,'/',i4) 415 444 416 445 !#ifdef CPP_IOIPSL
Note: See TracChangeset
for help on using the changeset viewer.