Ignore:
Timestamp:
May 5, 2010, 3:23:18 PM (15 years ago)
Author:
musat
Message:

Output all tracers defined in .def in hist files with dynamic
declaration of LMDZ atmospheric tracers' output levels
Add 6 pseudo-water tracers with and without transport by boundary layer
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4V5.0-dev/libf/phylmd/phys_output_mod.F90

    r1347 r1376  
    1111!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    1212
    13 MODULE phys_output_mod
     13MODULE phys_output_mod 
    1414
    1515  IMPLICIT NONE
     
    525525  type(ctrl_out),save :: o_dvlif        = ctrl_out((/ 4, 10, 10, 10, 10 /),'dvlif')
    526526
    527 ! Attention a refaire correctement
    528   type(ctrl_out),save,dimension(2) :: o_trac         = (/ ctrl_out((/ 4, 10, 10, 10, 10 /),'trac01'), &
    529                                                      ctrl_out((/ 4, 10, 10, 10, 10 /),'trac02') /)
    530527    CONTAINS
    531528
     
    539536       type_ocean, iflag_pbl,ok_mensuel,ok_journe, &
    540537       ok_hf,ok_instan,ok_LES,ok_ade,ok_aie, read_climoz, &
    541        new_aod, aerosol_couple)   
     538       new_aod, aerosol_couple, o_trac)   
    542539
    543540
     
    602599  real, dimension(nfiles), save     :: phys_out_latmin        = (/ -90., -90., -90., -90., -90. /)
    603600  real, dimension(nfiles), save     :: phys_out_latmax        = (/ 90., 90., 90., 90., 90. /)
    604  
    605  
    606 
    607 !
     601
     602!IM definition dynamique flag o_trac pour sortie traceurs
     603  INTEGER :: nq
     604  type(ctrl_out) :: o_trac(nqtot)
     605  CHARACTER(len=8) :: solsym(nqtot)
     606
    608607   print*,'Debut phys_output_mod.F90'
    609608! Initialisations (Valeurs par defaut
     
    12201219     ENDIF
    12211220
    1222       if (nqtot>=3) THEN
    1223 !Attention    DO iq=3,nqtot
    1224     DO iq=3,4 
     1221!IM traceurs dynamiques
     1222    DO nq=1,nqtot
     1223      IF(nq.LT.10) THEN
     1224       WRITE(solsym(nq),'(i1)') nq
     1225       o_trac(nq)    =  ctrl_out((/ 4, 5, 1, 1, 1 /),'trac0'//TRIM(solsym(nq)))
     1226      ELSE
     1227       WRITE(solsym(nq),'(i2)') nq
     1228       o_trac(nq)    =  ctrl_out((/ 4, 5, 1, 1, 1 /),'trac'//TRIM(solsym(nq)))
     1229      ENDIF
     1230     WRITE(*,*) 'nq, o_trac(nq)=',nq, o_trac(nq)
     1231    ENDDO
     1232!
     1233    if (nqtot>=3) THEN
     1234     DO iq=3,nqtot 
    12251235       iiq=niadv(iq)
    1226 ! CALL histdef3d (iff, o_trac%flag,'o_'//tnom(iq)%name,ttext(iiq), "-" )
    12271236  CALL histdef3d (iff, o_trac(iq-2)%flag,o_trac(iq-2)%name,ttext(iiq), "-" )
    1228     ENDDO
    1229       endif
     1237     ENDDO
     1238    endif
    12301239
    12311240        CALL histend(nid_files(iff))
Note: See TracChangeset for help on using the changeset viewer.