Changeset 3450 for LMDZ6/trunk/libf/phylmd/phytrac_mod.F90
- Timestamp:
- Jan 25, 2019, 7:51:34 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/phytrac_mod.F90
r3418 r3450 405 405 !Config Key = convscav 406 406 !Config Desc = Convective scavenging switch: 0=off, 1=on. 407 !Config Def = . false.407 !Config Def = .FALSE. 408 408 !Config Help = 409 409 ! 410 410 !$OMP MASTER 411 convscav_omp=. false.411 convscav_omp=.FALSE. 412 412 call getin('convscav', convscav_omp) 413 413 iflag_vdf_trac_omp=1 … … 479 479 CASE('co2i') 480 480 source(:,:)=0. 481 lessivage = .FALSE. 482 aerosol(:) = .FALSE. 483 pbl_flg(:) = 1 484 iflag_the_trac= 1 485 iflag_vdf_trac= 1 486 iflag_con_trac= 1 481 487 #ifdef CPP_StratAer 482 488 CASE('coag') … … 506 512 CASE('lmdz') 507 513 IF (convscav.and.aerosol(it)) THEN 508 flag_cvltr(it)=. true.514 flag_cvltr(it)=.TRUE. 509 515 ccntrAA(it) =ccntrAA_in !--a modifier par JYG a lire depuis fichier 510 516 ccntrENV(it)=ccntrENV_in 511 517 coefcoli(it)=coefcoli_in 512 518 ELSE 513 flag_cvltr(it)=. false.519 flag_cvltr(it)=.FALSE. 514 520 ENDIF 515 521 516 522 CASE('repr') 517 flag_cvltr(it)=. false.523 flag_cvltr(it)=.FALSE. 518 524 519 525 CASE('inca') 520 526 ! IF ((it.EQ.id_Rn222) .OR. ((it.GE.id_SO2) .AND. (it.LE.id_NH3)) ) THEN 521 527 ! !--gas-phase species 522 ! flag_cvltr(it)=. false.528 ! flag_cvltr(it)=.FALSE. 523 529 ! 524 530 ! ELSEIF ( (it.GE.id_CIDUSTM) .AND. (it.LE.id_AIN) ) THEN 525 531 ! !--insoluble aerosol species 526 ! flag_cvltr(it)=. true.532 ! flag_cvltr(it)=.TRUE. 527 533 ! ccntrAA(it)=0.7 528 534 ! ccntrENV(it)=0.7 … … 530 536 ! ELSEIF ( (it.EQ.id_Pb210) .OR. ((it.GE.id_CSSSM) .AND. (it.LE.id_SSN))) THEN 531 537 ! !--soluble aerosol species 532 ! flag_cvltr(it)=. true.538 ! flag_cvltr(it)=.TRUE. 533 539 ! ccntrAA(it)=0.9 534 540 ! ccntrENV(it)=0.9 … … 540 546 !--test OB 541 547 !--for now we do not scavenge in cvltr 542 flag_cvltr(it)=. false.548 flag_cvltr(it)=.FALSE. 543 549 544 550 CASE('co2i') 545 551 !--co2 tracers are not scavenged 546 flag_cvltr(it)=. false.552 flag_cvltr(it)=.FALSE. 547 553 548 554 #ifdef CPP_StratAer 549 555 CASE('coag') 550 556 IF (convscav.and.aerosol(it)) THEN 551 flag_cvltr(it)=. true.557 flag_cvltr(it)=.TRUE. 552 558 ccntrAA(it) =ccntrAA_in 553 559 ccntrENV(it)=ccntrENV_in 554 560 coefcoli(it)=coefcoli_in 555 561 ELSE 556 flag_cvltr(it)=. false.562 flag_cvltr(it)=.FALSE. 557 563 ENDIF 558 564 #endif … … 562 568 ! 563 569 ELSE ! iflag_con .ne. 3 564 flag_cvltr(:) = . false.570 flag_cvltr(:) = .FALSE. 565 571 ENDIF 566 572 ! … … 593 599 ENDIF 594 600 ! 595 END 601 ENDIF ! of IF (debutphy) 596 602 !############################################ END INITIALIZATION ####### 597 603 … … 637 643 ! -- CO2 interactif -- 638 644 ! -- source is updated with FF and BB emissions 639 ! -- OB => PC need to add net fluxfrom ocean and orchidee645 ! -- and net fluxes from ocean and orchidee 640 646 ! -- sign convention : positive into the atmosphere 647 641 648 CALL tracco2i(pdtphys, debutphy, & 642 649 xlat, xlon, pphis, pphi, & … … 754 761 #endif 755 762 756 END 763 ENDIF ! convection 757 764 758 765 !====================================================================== … … 792 799 END DO ! it 793 800 794 END 801 ENDIF ! Thermiques 795 802 796 803 !====================================================================== … … 878 885 CALL abort_physic('iflag_vdf_trac', 'cas non prevu',1) 879 886 ! 880 END 887 ENDIF ! couche limite 881 888 882 889 !====================================================================== … … 968 975 zdz(i,k)=(paprs(i,k)-paprs(i,k+1))/zrho(i,k)/RG 969 976 ! 970 END 971 END 977 ENDDO 978 ENDDO 972 979 973 980 DO k=klev-1, 1, -1 … … 1014 1021 ! (1.-1./(frac_impa(i,k)*frac_nucl(i,k))) 1015 1022 !-------------- 1016 END 1017 END 1018 END 1019 END 1023 ENDDO 1024 ENDDO 1025 ENDIF 1026 ENDDO 1020 1027 ! ********* end modified old version 1021 1028 … … 1053 1060 ! ---------------------------------------------------------------------- 1054 1061 tr_seri(i,k,it)=tr_seri(i,k,it)*frac_impa(i,k)*frac_nucl(i,k) 1055 END 1056 END 1057 END 1058 END 1062 ENDDO 1063 ENDDO 1064 ENDIF 1065 ENDDO 1059 1066 1060 1067 ! ********* end old version 1061 1068 ENDIF ! iflag_lscav . EQ. 1, 2, 3 or 4 1062 1069 ! 1063 END 1070 ENDIF ! lessivage 1064 1071 1065 1072
Note: See TracChangeset
for help on using the changeset viewer.