Ignore:
Timestamp:
Aug 31, 2011, 2:53:29 PM (13 years ago)
Author:
jghattas
Message:

Added interface with chemestry model REPROBUS :

  • Compile LMDZ together with Reprobus code (dependecies in both directions) and cpp key REPROBUS :

./makelmdz_fcm -ext_src my_path_to_reprobus -cpp REPROBUS ...

  • For running, add type_trac=repr in run.def.

/Marion Marchand, JG

File:
1 edited

Legend:

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

    r1563 r1565  
    3232  SUBROUTINE infotrac_init
    3333    USE control_mod
    34 
     34#ifdef REPROBUS
     35    USE CHEM_REP, ONLY : Init_chem_rep_trac
     36#endif
    3537    IMPLICIT NONE
    3638!=======================================================================
     
    9496          CALL abort_gcm('infotrac_init','Incoherence between type_trac and config_inca',1)
    9597       END IF
     98    ELSE IF (type_trac=='repr') THEN
     99       WRITE(lunout,*) 'You have choosen to couple with REPROBUS chemestry model : type_trac=', type_trac
    96100    ELSE IF (type_trac == 'lmdz') THEN
    97101       WRITE(lunout,*) 'Tracers are treated in LMDZ only : type_trac=', type_trac
     
    115119!
    116120!-----------------------------------------------------------------------
    117     IF (type_trac == 'lmdz') THEN
     121    IF (type_trac == 'lmdz' .OR. type_trac == 'repr') THEN
    118122       OPEN(90,file='traceur.def',form='formatted',status='old', iostat=ierr)
    119123       IF(ierr.EQ.0) THEN
     
    147151    END IF
    148152   
     153! Transfert number of tracers to Reprobus
     154    IF (type_trac == 'repr') THEN
     155#ifdef REPROBUS
     156       CALL Init_chem_rep_trac(nbtr)
     157#endif
     158    END IF
    149159       
    150160!
     
    182192!    Get choice of advection schema from file tracer.def or from INCA
    183193!---------------------------------------------------------------------
    184     IF (type_trac == 'lmdz') THEN
     194    IF (type_trac == 'lmdz' .OR. type_trac == 'repr') THEN
    185195       IF(ierr.EQ.0) THEN
    186196          ! Continue to read tracer.def
Note: See TracChangeset for help on using the changeset viewer.