Ignore:
Timestamp:
Oct 19, 2023, 4:02:57 PM (14 months ago)
Author:
idelkadi
Message:

Merged trunk changes -r4488:4726 LMDZ_ECRad branch

Location:
LMDZ6/branches/LMDZ_ECRad
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad

  • LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/calfis_loc.F

    r4482 r4727  
    3838      USE IOPHY
    3939#endif
     40      USE lmdz_mpi
     41
    4042#ifdef CPP_PARA
    4143      USE parallel_lmdz,ONLY:omp_chunk,using_mpi,jjb_u,jje_u,jjb_v,jje_v
     
    117119      include "comgeom2.h"
    118120      include "iniprint.h"
    119 #ifdef CPP_MPI
    120       include 'mpif.h'
    121 #endif
    122121c    Arguments :
    123122c    -----------
     
    233232      REAL,SAVE,dimension(1:iim,1:llm):: du_send,du_recv,dv_send,dv_recv
    234233      INTEGER :: ierr
    235 #ifdef CPP_MPI
    236234      INTEGER,dimension(MPI_STATUS_SIZE,4) :: Status
    237 #else
    238       INTEGER,dimension(1,4) :: Status
    239 #endif
    240235      INTEGER, dimension(4) :: Req
    241236      REAL,ALLOCATABLE,SAVE:: zdufi2(:,:),zdvfi2(:,:)
     
    873868
    874869c$OMP BARRIER
    875 #ifdef CPP_MPI
     870
    876871c$OMP MASTER
    877872!$OMP CRITICAL (MPI)
     
    882877!$OMP END CRITICAL (MPI)
    883878c$OMP END MASTER
    884 #endif
     879
    885880c$OMP BARRIER
    886881     
     
    889884      if (MPI_rank<MPI_Size-1) then
    890885c$OMP BARRIER
    891 #ifdef CPP_MPI
     886
    892887c$OMP MASTER     
    893888!$OMP CRITICAL (MPI)
     
    898893!$OMP END CRITICAL (MPI)
    899894c$OMP END MASTER
    900 #endif
     895
    901896      endif
    902897
     
    904899
    905900
    906 #ifdef CPP_MPI
    907901c$OMP MASTER   
    908902!$OMP CRITICAL (MPI)
     
    916910!$OMP END CRITICAL (MPI)
    917911c$OMP END MASTER
    918 #endif
    919912
    920913c$OMP BARRIER     
  • LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/phylmd/callphysiq_mod.F90

    r4146 r4727  
    2222  USE control_mod, ONLY: planet_type, ok_dyn_xios
    2323  USE physiq_mod, ONLY: physiq
    24 #ifdef CPP_XIOS
    25   USE mod_xios_dyn3dmem, ONLY : dyn3d_ctx_handle
    26   USE xios, ONLY : xios_set_current_context
    27 #endif
     24  USE lmdz_xios, ONLY : xios_set_current_context, xios_get_current_context, xios_context
    2825  IMPLICIT NONE
    2926
     
    5653  REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers
    5754  REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure
    58  
     55  TYPE(xios_context) :: dyn3d_ctx_handle
     56
    5957  ! Local variables
    6058  CHARACTER(len=11) :: modname="call_physiq"
     
    7068  ENDIF
    7169
     70  !$OMP MASTER
     71  if (ok_dyn_xios) then
     72     CALL xios_get_current_context(dyn3d_ctx_handle)
     73  endif
     74  !$OMP END MASTER
    7275
    7376! Call physics package with required inputs/outputs
     
    9598
    9699! switching back to LMDZDYN context
    97 #ifdef CPP_XIOS
    98100!$OMP MASTER
    99101  if (ok_dyn_xios) then
     
    101103  endif
    102104!$OMP END MASTER
    103 #endif 
    104105
    105106
  • LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/phylmd/ce0l.F90

    r4482 r4727  
    3636  USE mod_hallo,      ONLY: init_mod_hallo
    3737  USE mod_interface_dyn_phys, ONLY: init_interface_dyn_phys
    38 #ifdef CPP_XIOS
    39   USE xios, only: xios_finalize
    40 #endif
     38  USE lmdz_xios, only: using_xios, xios_finalize
    4139#endif
    4240
     
    4644  USE comvert_mod, ONLY: pa, preff, pressure_exner
    4745  USE temps_mod, ONLY: calend, day_ini, dt
     46  USE lmdz_mpi
    4847
    4948  IMPLICIT NONE
     
    5554  include "comgeom2.h"
    5655  include "iniprint.h"
    57 #ifdef CPP_MPI
    58   include 'mpif.h'
    59 #endif
    6056 
    6157  REAL               :: masque(iip1,jjp1)             !--- CONTINENTAL MASK
     
    252248#ifdef CPP_PARA
    253249  END IF
    254 #ifdef CPP_XIOS
    255   CALL xios_finalize
    256 #endif
    257 #ifdef CPP_MPI
     250  IF (using_xios) CALL xios_finalize
    258251  IF (using_mpi) call MPI_FINALIZE(ierr)
    259 #endif
    260252#endif
    261253
  • LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r4089 r4727  
    9494  USE init_ssrf_m, ONLY: start_init_subsurf
    9595  USE phys_state_var_mod, ONLY: beta_aridity, delta_tsurf, awake_dens, cv_gen, &
    96        ratqs_inter, rneb_ancien
     96       ratqs_inter_, rneb_ancien
    9797  !use ioipsl_getincom
    9898  IMPLICIT NONE
     
    143143                   fact_cldcon, facttemps,ok_newmicro,iflag_radia,      &
    144144                   iflag_cldcon,                                        &
    145                    iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs,            &
     145                   ratqsbas,ratqshaut,tau_ratqs,            &
    146146                   ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan, flag_volc_surfstrat,     &
    147147                   aerosol_couple, chemistry_couple, flag_aerosol, flag_aerosol_strat,  &
     
    285285  end IF
    286286
    287   ratqs_inter = 0.002
     287  ratqs_inter_ = 0.002
    288288  rneb_ancien = 0.
    289289  CALL phyredem( "startphy.nc" )
Note: See TracChangeset for help on using the changeset viewer.