Ignore:
Timestamp:
Aug 29, 2011, 3:32:52 PM (13 years ago)
Author:
jghattas
Message:
  • Added reading of paramter type_trac from *.def file : type_trac=lmdz(default), inca or repr(soon). While running with INCA, 2 parameters are now necessare in .def : type_trac=inca and config_inca=aero/chem. If type_trac=lmdz or repr, config_inca will not be used.
  • Removed print of ecrit_mth, ecrit_day etc in physiq.F. Removed the variable ecrit_hf2mth which is no longer used.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3dpar/infotrac.F90

    r1454 r1563  
    3232  SUBROUTINE infotrac_init
    3333    USE control_mod
     34
    3435    IMPLICIT NONE
    3536!=======================================================================
     
    8586   
    8687
    87     IF (config_inca=='none') THEN
    88        type_trac='lmdz'
     88    ! Coherence test between parameter type_trac and config_inca
     89    IF (type_trac=='inca') THEN
     90       WRITE(lunout,*) 'You have choosen to couple with INCA chemestry model : type_trac=', &
     91            type_trac,' config_inca=',config_inca
     92       IF (config_inca/='aero' .AND. config_inca/='chem') THEN
     93          WRITE(lunout,*) 'Incoherence between type_trac and config_inca. Model stops. Modify run.def'
     94          CALL abort_gcm('infotrac_init','Incoherence between type_trac and config_inca',1)
     95       END IF
     96    ELSE IF (type_trac == 'lmdz') THEN
     97       WRITE(lunout,*) 'Tracers are treated in LMDZ only : type_trac=', type_trac
    8998    ELSE
    90        type_trac='inca'
    91     END IF
     99       WRITE(lunout,*) 'type_trac=',type_trac,' not possible. Model stops'
     100       CALL abort_gcm('infotrac_init','bad parameter',1)
     101    END IF
     102
     103
     104    ! Test if config_inca is other then none for run without INCA
     105    IF (type_trac/='inca' .AND. config_inca/='none') THEN
     106       WRITE(lunout,*) 'config_inca will now be changed to none as you do not couple with INCA model'
     107       config_inca='none'
     108    END IF
     109
    92110
    93111!-----------------------------------------------------------------------
     
    119137         nbtr=nqtrue
    120138       endif
    121     ELSE
    122        ! nbtr has been read from INCA by init_cont_lmdz() in gcm.F
     139    ELSE ! type_trac=inca
     140       ! nbtr has been read from INCA by init_const_lmdz() in gcm.F
    123141       nqtrue=nbtr+2
    124142    END IF
     
    128146       CALL abort_gcm('infotrac_init','Not enough tracers',1)
    129147    END IF
     148   
     149       
    130150!
    131151! Allocate variables depending on nqtrue and nbtr
Note: See TracChangeset for help on using the changeset viewer.