- Timestamp:
- May 30, 2016, 10:46:40 PM (8 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/iophy.F90
r2429 r2529 633 633 ENDIF 634 634 635 ! Set swaero_diag=true if at least one of the concerned variables are defined 636 IF (var%name=='topswad' .OR. var%name=='topswai' .OR. var%name=='solswad' .OR. var%name=='solswai' ) THEN 635 ! Set swaero_diag=true if at least one of the concerned variables are 636 ! defined 637 !--OB 30/05/2016 use wider set of variables 638 IF ( var%name=='topswad' .OR. var%name=='topswad0' .OR. var%name=='solswad' .OR. var%name=='solswad0' .OR. & 639 var%name=='topswai' .OR. var%name=='solswai' .OR. ( iflag_rrtm==1 .AND. ( & 640 var%name=='toplwad' .OR. var%name=='toplwad0' .OR. var%name=='sollwad' .OR. var%name=='sollwad0' .OR. & 641 var%name=='toplwai' .OR. var%name=='sollwai' ) ) ) THEN 637 642 IF ( var%flag(iff)<=lev_files(iff) ) THEN 638 643 swaero_diag=.TRUE. -
LMDZ5/trunk/libf/phylmd/phys_output_var_mod.F90
r2341 r2529 47 47 48 48 ! swaero_diag : flag indicates if it is necessary to do calculation for some aerosol diagnostics 49 LOGICAL, SAVE :: swaero_diag=.FALSE. 49 !--OB: this needs to be set to TRUE by default and changed back to FALSE after first radiation call 50 !-- and corrected back to TRUE based on output requests 51 LOGICAL, SAVE :: swaero_diag=.TRUE. 50 52 !$OMP THREADPRIVATE(swaero_diag) 51 53 -
LMDZ5/trunk/libf/phylmd/physiq_mod.F90
r2525 r2529 3513 3513 ZSWFT0_i, ZFSDN0, ZFSUP0) 3514 3514 3515 !--OB 30/05/2016 3516 !--here we return swaero_diag to FALSE 3517 !--and histdef will switch it back to TRUE if necessary 3518 !--this is necessary to get the right swaero at first step 3519 IF (debut) swaero_diag = .FALSE. 3515 3520 ! 3516 3521 !IM 2eme calcul radiatif pour le cas perturbe ou au moins un -
LMDZ5/trunk/libf/phylmd/rrtm/recmwf_aero.F90
r2146 r2529 161 161 IMPLICIT NONE 162 162 INCLUDE "clesphys.h" 163 164 163 165 164 INTEGER(KIND=JPIM),INTENT(IN) :: KPROMA … … 306 305 ! not ok_ade and not ok_aie = 1 to proceed 307 306 ! therefore the cases have the following corresponding switches 308 ! 1 = not ok_ade or not ok_aie309 ! 2 = ok_aie310 ! 3 = ok_ade 307 ! 1 = not ok_ade and not ok_aie OR not ok_ade and ok_aie and swaero_diag OR ok_ade and not ok_aie and swaero_diag 308 ! 2 = not ok_ade and ok_aie OR ok_aie and ok_ade and swaero_diag 309 ! 3 = ok_ade and not ok_aie OR ok_aie and ok_ade and swaero_diag 311 310 ! 4 = ok_ade and ok_aie 312 311 ! 5 = no aerosol feedback wanted or no aerosol at all … … 445 444 IF (flag_aerosol .GT. 0 .OR. flag_aerosol_strat) THEN 446 445 447 IF ( .not. ok_ade .or. .not. ok_aie ) THEN 446 !--Case 1 447 IF ( ( .not. ok_ade .AND. .not. ok_aie ) .OR. & 448 & ( .not. ok_ade .AND. ok_aie .AND. swaero_diag ) .OR. & 449 & ( ok_ade .AND. .not. ok_aie .AND. swaero_diag ) ) THEN 448 450 449 451 ! natural aerosols for direct and indirect effect … … 483 485 ENDIF 484 486 485 IF (ok_aie) THEN 487 !--Case 2 488 IF ( ( .not. ok_ade .AND. ok_aie ) .OR. & 489 & ( ok_ade .AND. ok_aie .AND. swaero_diag ) ) THEN 486 490 487 491 ! natural aerosols for direct indirect effect … … 521 525 ENDIF ! ok_aie 522 526 523 IF (ok_ade) THEN 527 !--Case 3 528 IF ( ( ok_ade .AND. .not. ok_aie ) .OR. & 529 & ( ok_ade .AND. ok_aie .AND. swaero_diag ) ) THEN 524 530 525 531 ! direct effect of total aerosol activated … … 559 565 ENDIF !-end ok_ade 560 566 567 !--Case 4 561 568 IF (ok_ade .and. ok_aie) THEN 562 569
Note: See TracChangeset
for help on using the changeset viewer.