Changeset 3465 for LMDZ6/trunk/libf/phylmd/physiq_mod.F90
- Timestamp:
- Mar 14, 2019, 10:34:31 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/physiq_mod.F90
r3462 r3465 243 243 #endif 244 244 USE indice_sol_mod 245 USE phytrac_mod, ONLY : phytrac 245 USE phytrac_mod, ONLY : phytrac_init, phytrac 246 246 USE carbon_cycle_mod, ONLY : infocfields_init, RCO2_glo, carbon_cycle_rad 247 247 … … 1488 1488 ENDIF 1489 1489 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1490 IF (grid_type/=unstructured)CALL init_iophy_new(latitude_deg,longitude_deg)1490 CALL init_iophy_new(latitude_deg,longitude_deg) 1491 1491 1492 1492 !=================================================================== … … 1581 1581 CALL init_readaerosolstrato(flag_aerosol_strat) !! initialise aero strato from file for XIOS interpolation (unstructured_grid) 1582 1582 1583 IF(read_climoz>=1 .AND. create_etat0_limit .AND. grid_type==unstructured) CALL regr_horiz_time_climoz(read_climoz,ok_daily_climoz)1584 CALL create_etat0_limit_unstruct1585 CALL phyetat0 ("startphy.nc",clesphy0,tabcntr0)1586 IF (grid_type==unstructured) CALL init_iophy_new(latitude_deg,longitude_deg)1587 1588 !jyg<1589 IF (klon_glo==1) THEN1590 IF (iflag_pbl > 1) THEN1591 pbl_tke(:,:,is_ave) = 0.1592 DO nsrf=1,nbsrf1593 DO k = 1,klev+11594 pbl_tke(:,k,is_ave) = pbl_tke(:,k,is_ave) &1595 +pctsrf(:,nsrf)*pbl_tke(:,k,nsrf)1596 ENDDO1597 ENDDO1598 ELSE ! (iflag_pbl > 1)1599 pbl_tke(:,:,:) = 0.1600 ENDIF ! (iflag_pbl > 1)1601 ELSE1602 pbl_tke(:,:,is_ave) = 0. !ym missing init : maybe must be initialized in the same way that for klon_glo==1 ??1603 !>jyg1604 ENDIF1605 1583 #ifdef CPP_COSP 1606 1607 1584 IF (ok_cosp) THEN 1608 1585 CALL phys_cosp(itap,phys_tstep,freq_cosp, & 1609 1586 ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, & 1610 1587 ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, & … … 1620 1597 ENDIF 1621 1598 #endif 1622 1623 ! 1624 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1599 ! 1600 ! 1601 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1625 1602 ! Nouvelle initialisation pour le rayonnement RRTM 1626 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1603 ! 1604 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1627 1605 1628 1606 CALL iniradia(klon,klev,paprs(1,1:klev+1)) 1629 1607 ! Initialisation des champs dans phytrac qui sont utilisés par phys_output_write 1608 IF (iflag_phytrac == 1 ) THEN 1609 CALL phytrac_init() 1610 ENDIF 1611 1612 CALL phys_output_write(itap, pdtphys, paprs, pphis, & 1613 pplay, lmax_th, aerosol_couple, & 1614 ok_ade, ok_aie, ivap, iliq, isol, new_aod, ok_sync,& 1615 ptconv, read_climoz, clevSTD, & 1616 ptconvth, d_u, d_t, qx, d_qx, zmasse, & 1617 flag_aerosol, flag_aerosol_strat, ok_cdnc) 1630 1618 1631 1619 #ifdef CPP_XIOS 1632 1620 IF (is_omp_master) CALL xios_update_calendar(1) 1633 1621 #endif 1634 1622 IF(read_climoz>=1 .AND. create_etat0_limit) CALL regr_horiz_time_climoz(read_climoz,ok_daily_climoz) 1623 CALL create_etat0_limit_unstruct 1624 CALL phyetat0 ("startphy.nc",clesphy0,tabcntr0) 1625 1626 !jyg< 1627 IF (klon_glo==1) THEN 1628 pbl_tke(:,:,is_ave) = 0. 1629 DO nsrf=1,nbsrf 1630 DO k = 1,klev+1 1631 pbl_tke(:,k,is_ave) = pbl_tke(:,k,is_ave) & 1632 +pctsrf(:,nsrf)*pbl_tke(:,k,nsrf) 1633 ENDDO 1634 ENDDO 1635 ELSE 1636 pbl_tke(:,:,is_ave) = 0. !ym missing init : maybe must be initialized in the same way that for klon_glo==1 ?? 1637 !>jyg 1638 ENDIF 1635 1639 !IM begin 1636 1640 print*,'physiq: clwcon rnebcon ratqs',clwcon(1,1),rnebcon(1,1) & … … 1778 1782 tave = 'ave(X)' 1779 1783 !IM cf. AM 081204 BEG 1784 write(lunout,*)'AVANT HIST IFLAG_CON=',iflag_con 1780 1785 !IM cf. AM 081204 END 1781 1786 ! … … 1783 1788 ! Initialisation des sorties 1784 1789 !============================================================= 1785 1786 CALL phys_output_write(itap, pdtphys, paprs, pphis, &1787 pplay, lmax_th, aerosol_couple, &1788 ok_ade, ok_aie, ivap, iliq, isol, new_aod, ok_sync,&1789 ptconv, read_climoz, clevSTD, &1790 ptconvth, d_u, d_t, qx, d_qx, zmasse, &1791 flag_aerosol, flag_aerosol_strat, ok_cdnc)1792 1790 1793 1791 #ifdef CPP_XIOS … … 1874 1872 #endif 1875 1873 ENDIF 1874 1876 1875 !$omp single 1877 1876 IF (read_climoz >= 1) CALL open_climoz(ncid_climoz, press_cen_climoz, &
Note: See TracChangeset
for help on using the changeset viewer.