Ignore:
Timestamp:
Apr 20, 2022, 11:01:09 AM (2 years ago)
Author:
acozic
Message:

modify lmdz code in order to transfer to inca model all infomations necessary for the coupling with dynamico

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r4120 r4127  
    3434    USE FLOTT_GWD_rando_m, only: FLOTT_GWD_rando
    3535    USE fonte_neige_mod, ONLY  : fonte_neige_get_vars
    36     USE geometry_mod, ONLY: cell_area, latitude_deg, longitude_deg
     36    USE geometry_mod, ONLY: cell_area, latitude_deg, longitude_deg, longitude,latitude, &
     37         boundslon,boundslat, dx, dy, ind_cell_glo
    3738    USE ioipsl, only: histbeg, histvert, histdef, histend, histsync, &
    3839         histwrite, ju2ymds, ymds2ju, getin
     
    5556    USE phystokenc_mod, ONLY: offline, phystokenc
    5657    USE phys_cal_mod, only: year_len, mth_len, days_elapsed, jh_1jan, &
    57          year_cur, mth_cur,jD_cur, jH_cur, jD_ref, day_cur, hour
     58         year_cur, mth_cur,jD_cur, jH_cur, jD_ref, day_cur, hour, calend
    5859!!  USE phys_local_var_mod, ONLY : a long list of variables
    5960!!              ==> see below, after "CPP Keys" section
     
    7071    USE surface_data,     ONLY : type_ocean, ok_veget, landice_opt
    7172    USE time_phylmdz_mod, only: annee_ref, current_time, day_ini, day_ref, &
    72           day_step_phy, itau_phy, pdtphys, raz_date, start_time, update_time
     73          day_step_phy, itau_phy, pdtphys, raz_date, start_time, update_time, ndays
    7374    USE tracinca_mod, ONLY: config_inca
    7475    USE tropopause_m,     ONLY: dyn_tropopause
     
    20282029          WRITE(lunout,*) 'initial time chemini', days_elapsed, calday
    20292030
    2030           CALL chemini(  &
    2031                rg, &
    2032                ra, &
    2033                cell_area, &
     2031          call init_const_lmdz( &
     2032          ndays, nbsrf, is_oce,is_sic, is_ter,is_lic, calend, &
     2033          config_inca)
     2034
     2035          CALL init_inca_geometry( &
     2036               longitude, latitude, &
     2037               boundslon, boundslat, &
     2038               dx, dy, cell_area, ind_cell_glo)
     2039
     2040
     2041          CALL chemini(  pplay, &
     2042               nbp_lon, nbp_lat, &
    20342043               latitude_deg, &
    20352044               longitude_deg, &
     
    50835092            pphis, &
    50845093            zx_rh, &
    5085             aps, bps, ap, bp)
     5094            aps, bps, ap, bp, lafin)
    50865095
    50875096       CALL VTe(VTinca)
     
    53455354#ifdef CPP_XIOS
    53465355       IF (is_omp_master) CALL xios_context_finalize
     5356
     5357#ifdef INCA
     5358       if (type_trac == 'inca' ) then
     5359          IF (is_omp_master .and. grid_type==unstructured) THEN
     5360             CALL finalize_inca
     5361          ENDIF
     5362       endif
     5363#endif
     5364
    53475365#endif
    53485366       WRITE(lunout,*) ' physiq fin, nombre de steps ou cvpas = 1 : ', Ncvpaseq1
Note: See TracChangeset for help on using the changeset viewer.