Changeset 1374


Ignore:
Timestamp:
May 4, 2010, 2:46:58 PM (15 years ago)
Author:
musat
Message:

Add logical flags ok_histNMC(3) to manage output of the
standard pressure files hist*NMC.nc
IM

Location:
LMDZ4/trunk/libf/phylmd
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/clesphys.h

    r1368 r1374  
    4848       INTEGER lev_histdayNMC
    4949       Integer lev_histins, lev_histLES 
     50!IM ok_histNMC  : sortie fichiers niveaux de pression (histmthNMC, histdayNMC, histhfNMC)
    5051!IM freq_outNMC : frequences de sortie fichiers niveaux de pression (histmthNMC, histdayNMC, histhfNMC)
    5152!IM freq_calNMC : frequences de calcul fis. hist*NMC.nc
    5253!IM pasphys : pas de temps de physique (secondes)
    5354       REAL pasphys
     55       LOGICAL ok_histNMC(3)
    5456       REAL freq_outNMC(3) , freq_calNMC(3)
    5557       CHARACTER(len=4) type_run
     
    7779     &     , lev_histhf, lev_histday, lev_histmth                       &
    7880     &     , lev_histins, lev_histLES, lev_histdayNMC                   &
    79      &     , pasphys, freq_outNMC, freq_calNMC                          &
     81     &     , pasphys, ok_histNMC, freq_outNMC, freq_calNMC              &
    8082     &     , type_run, ok_isccp, ok_regdyn, ok_cosp                     &
    8183     &     , ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP                     &
  • LMDZ4/trunk/libf/phylmd/conf_phys.F90

    r1368 r1374  
    139139  Integer, save :: lev_histins_omp, lev_histLES_omp
    140140  INTEGER, SAVE :: lev_histdayNMC_omp
     141  LOGICAL, SAVE :: ok_histNMC_omp(3)
    141142  REAL, SAVE :: freq_outNMC_omp(3), freq_calNMC_omp(3)
    142143  CHARACTER*4, SAVE :: type_run_omp
     
    10891090!
    10901091!histNMC BEG
     1092!Config Key  = ok_histNMC
     1093!Config Desc = ok_histNMC(1) = frequence de sortie fichiers histmthNMC
     1094!Config Desc = ok_histNMC(2) = frequence de sortie fichiers histdayNMC
     1095!Config Desc = ok_histNMC(3) = frequence de sortie fichiers histhfNMC
     1096!Config Def  = n, n, n
     1097!Config Help =
     1098!
     1099  ok_histNMC_omp(1) = .false.
     1100  ok_histNMC_omp(2) = .false.
     1101  ok_histNMC_omp(3) = .false.
     1102  call getin('ok_histNMC',ok_histNMC_omp)
     1103!
    10911104!Config Key  = freq_outNMC
    10921105!Config Desc = freq_outNMC(1) = frequence de sortie fichiers histmthNMC
     
    14761489    lev_histLES = lev_histLES_omp
    14771490    lev_histdayNMC = lev_histdayNMC_omp
     1491    ok_histNMC(:) = ok_histNMC_omp(:)
    14781492    freq_outNMC(:) = freq_outNMC_omp(:)
    14791493    freq_calNMC(:) = freq_calNMC_omp(:)
     
    16631677  write(numout,*)' lev_histLES = ',lev_histLES
    16641678  write(numout,*)' lev_histdayNMC = ',lev_histdayNMC
     1679  write(numout,*)' ok_histNMC = ',ok_histNMC
    16651680  write(numout,*)' freq_outNMC = ',freq_outNMC
    16661681  write(numout,*)' freq_calNMC = ',freq_calNMC
  • LMDZ4/trunk/libf/phylmd/ini_histdayNMC.h

    r1351 r1374  
    33!
    44c$OMP MASTER
    5 
     5      IF (ok_histNMC(2)) THEN
     6c
    67       zstophy = dtime
    78       zstohf = ecrit_hf
     
    133134         CALL histend(nid_daynmc)
    134135c
     136      ENDIF !(ok_histNMC(2)) THEN
    135137c$OMP END MASTER
  • LMDZ4/trunk/libf/phylmd/ini_histhfNMC.h

    r1351 r1374  
    33!
    44c$OMP MASTER
    5 
     5c
     6      IF (ok_histNMC(3)) THEN
     7c
    68       zstophy = dtime
    79       zstohf = ecrit_hf
     
    142144         CALL histend(nid_hfnmc)
    143145c
     146      ENDIF !(ok_histNMC(2)) THEN
     147c
    144148c$OMP END MASTER
    145 
  • LMDZ4/trunk/libf/phylmd/ini_histmthNMC.h

    r1352 r1374  
    33!
    44c$OMP MASTER
     5c
     6      IF (ok_histNMC(1)) THEN
     7c
    58       zout = freq_outNMC(1)
    69c
     
    139142         CALL histend(nid_mthnmc)
    140143c
     144      ENDIF !(ok_histNMC(1)) THEN
     145c
    141146c$OMP END MASTER
  • LMDZ4/trunk/libf/phylmd/write_histdayNMC.h

    r1351 r1374  
    22! $Header$
    33!
    4 c     IF (ok_mensuel) THEN
     4      IF (ok_histNMC(2)) THEN
    55c
    66       ndex3d = 0
     
    3939c$OMP END MASTER
    4040      endif
    41 
    42 c     ENDIF
     41c
     42      ENDIF ! (ok_histNMC(2)) THEN
  • LMDZ4/trunk/libf/phylmd/write_histhfNMC.h

    r1351 r1374  
    22! $Header$
    33!
     4      IF (ok_histNMC(3)) THEN
     5c
    46       ndex3d = 0
    57       itau_w = itau_phy + itap
     
    6567c$OMP END MASTER
    6668      endif
    67 
    68 c     ENDIF
     69c
     70      ENDIF !      (ok_histNMC(3)) THEN
  • LMDZ4/trunk/libf/phylmd/write_histmthNMC.h

    r1359 r1374  
    22! $Header$
    33!
     4      IF (ok_histNMC(1)) THEN
    45c
    56       ndex3d = 0
     
    6465c$OMP END MASTER
    6566      endif
     67c
     68      ENDIF !(ok_histNMC(1)) THEN
Note: See TracChangeset for help on using the changeset viewer.