Ignore:
Timestamp:
Nov 12, 2018, 1:52:29 PM (6 years ago)
Author:
Laurent Fairhead
Message:

Inclusion of Yann's latest (summer/fall 2018) modifications for
convergence of DYNAMICO/LMDZ physics
YM/LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/DYNAMICO-conv/libf/phylmd/physiq_mod.F90

    r3411 r3413  
    258258    USE climoz_mod
    259259    USE limit_read_mod, ONLY : init_limit_read
     260    USE regr_horiz_time_climoz_m, ONLY: regr_horiz_time_climoz
     261    USE readaerosol_mod, ONLY : init_aero_fromfile
     262    USE readaerosolstrato_m, ONLY : init_readaerosolstrato
    260263
    261264
     
    11951198       CALL phys_state_var_init(read_climoz)
    11961199       CALL phys_output_var_init
     1200       IF(read_climoz>=1 .AND. create_etat0_limit) CALL regr_horiz_time_climoz(read_climoz,ok_daily_climoz)
     1201
    11971202       print*, '================================================='
    11981203       !
     
    14921497       !
    14931498
    1494        CALL create_climoz(read_climoz)
     1499!       CALL create_climoz(read_climoz)
     1500       CALL init_aero_fromfile(flag_aerosol)  !! initialise aero from file for XIOS interpolation (unstructured_grid)
     1501       CALL init_readaerosolstrato(flag_aerosol_strat)  !! initialise aero strato from file for XIOS interpolation (unstructured_grid)
     1502
     1503#ifdef CPP_COSP
     1504       CALL phys_cosp(itap,phys_tstep,freq_cosp, &
     1505               ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
     1506               ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, missing_val, &
     1507               klon,klev,longitude_deg,latitude_deg,presnivs,overlap, &
     1508               JrNt,ref_liq,ref_ice, &
     1509               pctsrf(:,is_ter)+pctsrf(:,is_lic), &
     1510               zu10m,zv10m,pphis, &
     1511               zphi,paprs(:,1:klev),pplay,zxtsol,t_seri, &
     1512               qx(:,:,ivap),zx_rh,cldfra,rnebcon,flwc,fiwc, &
     1513               prfl(:,1:klev),psfl(:,1:klev), &
     1514               pmflxr(:,1:klev),pmflxs(:,1:klev), &
     1515               mr_ozone,cldtau, cldemi)
     1516#endif
    14951517
    14961518       CALL phys_output_write(itap, pdtphys, paprs, pphis,                    &
     
    15041526       IF (is_omp_master) CALL xios_update_calendar(1)
    15051527#endif
     1528       IF(read_climoz>=1 .AND. create_etat0_limit) CALL regr_horiz_time_climoz(read_climoz,ok_daily_climoz)
    15061529       CALL create_etat0_limit_unstruct
    1507 
    15081530       CALL phyetat0 ("startphy.nc",clesphy0,tabcntr0)
    15091531
     
    15351557       ENDIF
    15361558
    1537        CALL printflag( tabcntr0,radpas,ok_journe, &
    1538             ok_instan, ok_region )
    1539        !
    15401559!       IF (ABS(phys_tstep-pdtphys).GT.0.001) THEN
    15411560!          WRITE(lunout,*) 'Pas physique n est pas correct',phys_tstep, &
     
    47334752       !         write(97) u_seri,v_seri,t_seri,q_seri
    47344753       !         close(97)
    4735 !       !$OMP MASTER
    4736        IF (read_climoz >= 1) THEN
    4737           IF (is_mpi_root) THEN
    4738              CALL nf95_close(ncid_climoz)
    4739           ENDIF
    4740           DEALLOCATE(press_edg_climoz) ! pointer
    4741           DEALLOCATE(press_cen_climoz) ! pointer
    4742        ENDIF
    4743 !       !$OMP END MASTER
     4754     
     4755       IF (is_omp_master) THEN
     4756       
     4757         IF (read_climoz >= 1) THEN
     4758           IF (is_mpi_root) CALL nf95_close(ncid_climoz)
     4759            DEALLOCATE(press_edg_climoz) ! pointer
     4760            DEALLOCATE(press_cen_climoz) ! pointer
     4761         ENDIF
     4762       
     4763       ENDIF
    47444764#ifdef CPP_XIOS
    47454765       IF (is_omp_master) CALL xios_context_finalize
Note: See TracChangeset for help on using the changeset viewer.