Ignore:
Timestamp:
Apr 8, 2014, 10:48:17 AM (10 years ago)
Author:
Laurent Fairhead
Message:

Rajout de la clé CPP_RRTM pour la compilation avec RRTM


Added CPP_RRTM key for RRTM compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/physiq.F90

    r2007 r2009  
    5353  USE phytrac_mod, ONLY : phytrac
    5454
     55#ifdef CPP_RRTM
    5556  USE YOERAD   , ONLY : NRADLP
     57#endif
    5658
    5759  !IM stations CFMIP
     
    27132715           ELSE                       ! RRTM radiation
    27142716!
     2717#ifdef CPP_RRTM
    27152718             CALL readaerosol_optic_rrtm( &
    27162719             debut, new_aod, flag_aerosol, itap, jD_cur-jD_ref, &
     
    27192722             tau_aero_rrtm, piz_aero_rrtm, cg_aero_rrtm,  &
    27202723             tausum_aero, tau3d_aero)
     2724#else
     2725
     2726            abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     2727            call abort_gcm(modname,abort_message,1)
     2728#endif
    27212729!
    27222730           ENDIF
     
    27422750         CALL readaerosolstrato(debut)
    27432751        ELSE
     2752#ifdef CPP_RRTM
    27442753         CALL readaerosolstrato_rrtm(debut)
     2754#else
     2755
     2756         abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     2757         call abort_gcm(modname,abort_message,1)
     2758#endif
    27452759        ENDIF
    27462760     ENDIF
     
    29622976
    29632977  if (ok_newmicro) then
    2964      IF (iflag_rrtm.NE.0.AND.ok_cdnc.AND.NRADLP.NE.3) THEN
    2965       PRINT *,'RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc'
    2966       STOP
     2978     IF (iflag_rrtm.NE.0) THEN
     2979#ifdef CPP_RRTM
     2980       IF (ok_cdnc.AND.NRADLP.NE.3) THEN
     2981         abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc'
     2982         call abort_gcm(modname,abort_message,1)
     2983       endif
     2984#else
     2985
     2986       abort_message='You should compile with -rrtm if running with iflag_rrtm=1'
     2987       call abort_gcm(modname,abort_message,1)
     2988#endif
    29672989     ENDIF
    29682990     CALL newmicro (ok_cdnc, bl95_b0, bl95_b1, &
Note: See TracChangeset for help on using the changeset viewer.