Ignore:
Timestamp:
Nov 30, 2024, 1:40:53 PM (12 days ago)
Author:
idelkadi
Message:

Modifications to have more choice for archiving time frequencies in output files (with IOIPSL) :
month(s),mth,m,mois,day(s),d,jour(s),j,...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phys_output_mod.F90

    r5356 r5357  
    1515! histhf.nc  : moyennes toutes les 3 heures
    1616! histins.nc : valeurs instantanees
    17 !
    18 ! Nov 2024 modif pour avoir plus de choix pour les freq temporelles d'archivage
    19 ! (month(s), months, m, day(s), jour(s), d, j, ...
     17! AI. nov 2024 : Modifs pour rajouter plus de choix pour la frequence temporelle d'archivage
     18!                dans les fichiers de sorties (avec IOIPSL) :
     19!                month(s),m,mth,mois,m,day(s),d,jour(s),j, ...
    2020!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    2121
     
    672672    ENDIF
    673673
    674     IF ( type == 'day'.or.type == 'days'.or.type == 'jours'.or.type == 'jour' ) timestep = ttt * dayseconde
    675     IF ( type == 'mounths'.or.type == 'mth'.or.type == 'mois' ) THEN
     674    IF ( type == 'day'.or.type == 'days'.or.type == 'd'.or.type == 'jours'.or.type == 'jour'.or.type == 'j' )&
     675           &  timestep = ttt * dayseconde
     676    IF ( type == 'months'.or.type == 'month'.or.type == 'mth'.or.type == 'mois'.or.type == 'm' ) THEN
    676677       WRITE(lunout,*)'annee_ref,day_ref mon_len',annee_ref,day_ref,mth_len
    677678       timestep = ttt * dayseconde * mth_len
    678679    ENDIF
    679     IF ( type == 'hours'.or.type == 'hr'.or.type == 'heurs') timestep = ttt * dayseconde / 24.
    680     IF ( type == 'mn'.or.type == 'minutes'  ) timestep = ttt * 60.
    681     IF ( type == 's'.or.type == 'sec'.or.type == 'secondes'   ) timestep = ttt
     680    IF ( type == 'hours'.or.type == 'hour'.or.type == 'hr'.or.type == 'heures'.or.type == 'heure'.or.type =='h' )&
     681           &  timestep = ttt * dayseconde / 24.
     682    IF ( type == 'mn'.or.type == 'minutes'.or.type == 'minute'.or.type == 'm' ) timestep = ttt * 60.
     683    IF ( type == 's'.or.type == 'sec'.or.type == 'secondes'.or.type =='seconde'   ) timestep = ttt
    682684    IF ( type == 'TS' ) timestep = ttt * dtime
    683685
Note: See TracChangeset for help on using the changeset viewer.