Changeset 4727 for LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat
- Timestamp:
- Oct 19, 2023, 4:02:57 PM (14 months ago)
- Location:
- LMDZ6/branches/LMDZ_ECRad
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_ECRad
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/calfis_loc.F
r4482 r4727 38 38 USE IOPHY 39 39 #endif 40 USE lmdz_mpi 41 40 42 #ifdef CPP_PARA 41 43 USE parallel_lmdz,ONLY:omp_chunk,using_mpi,jjb_u,jje_u,jjb_v,jje_v … … 117 119 include "comgeom2.h" 118 120 include "iniprint.h" 119 #ifdef CPP_MPI120 include 'mpif.h'121 #endif122 121 c Arguments : 123 122 c ----------- … … 233 232 REAL,SAVE,dimension(1:iim,1:llm):: du_send,du_recv,dv_send,dv_recv 234 233 INTEGER :: ierr 235 #ifdef CPP_MPI236 234 INTEGER,dimension(MPI_STATUS_SIZE,4) :: Status 237 #else238 INTEGER,dimension(1,4) :: Status239 #endif240 235 INTEGER, dimension(4) :: Req 241 236 REAL,ALLOCATABLE,SAVE:: zdufi2(:,:),zdvfi2(:,:) … … 873 868 874 869 c$OMP BARRIER 875 #ifdef CPP_MPI 870 876 871 c$OMP MASTER 877 872 !$OMP CRITICAL (MPI) … … 882 877 !$OMP END CRITICAL (MPI) 883 878 c$OMP END MASTER 884 #endif 879 885 880 c$OMP BARRIER 886 881 … … 889 884 if (MPI_rank<MPI_Size-1) then 890 885 c$OMP BARRIER 891 #ifdef CPP_MPI 886 892 887 c$OMP MASTER 893 888 !$OMP CRITICAL (MPI) … … 898 893 !$OMP END CRITICAL (MPI) 899 894 c$OMP END MASTER 900 #endif 895 901 896 endif 902 897 … … 904 899 905 900 906 #ifdef CPP_MPI907 901 c$OMP MASTER 908 902 !$OMP CRITICAL (MPI) … … 916 910 !$OMP END CRITICAL (MPI) 917 911 c$OMP END MASTER 918 #endif919 912 920 913 c$OMP BARRIER -
LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/phylmd/callphysiq_mod.F90
r4146 r4727 22 22 USE control_mod, ONLY: planet_type, ok_dyn_xios 23 23 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 28 25 IMPLICIT NONE 29 26 … … 56 53 REAL,INTENT(OUT) :: zdqfi_omp(klon,llm,nqtot) ! tendency on tracers 57 54 REAL,INTENT(OUT) :: zdpsrf_omp(klon) ! tendency on surface pressure 58 55 TYPE(xios_context) :: dyn3d_ctx_handle 56 59 57 ! Local variables 60 58 CHARACTER(len=11) :: modname="call_physiq" … … 70 68 ENDIF 71 69 70 !$OMP MASTER 71 if (ok_dyn_xios) then 72 CALL xios_get_current_context(dyn3d_ctx_handle) 73 endif 74 !$OMP END MASTER 72 75 73 76 ! Call physics package with required inputs/outputs … … 95 98 96 99 ! switching back to LMDZDYN context 97 #ifdef CPP_XIOS98 100 !$OMP MASTER 99 101 if (ok_dyn_xios) then … … 101 103 endif 102 104 !$OMP END MASTER 103 #endif104 105 105 106 -
LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/phylmd/ce0l.F90
r4482 r4727 36 36 USE mod_hallo, ONLY: init_mod_hallo 37 37 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 41 39 #endif 42 40 … … 46 44 USE comvert_mod, ONLY: pa, preff, pressure_exner 47 45 USE temps_mod, ONLY: calend, day_ini, dt 46 USE lmdz_mpi 48 47 49 48 IMPLICIT NONE … … 55 54 include "comgeom2.h" 56 55 include "iniprint.h" 57 #ifdef CPP_MPI58 include 'mpif.h'59 #endif60 56 61 57 REAL :: masque(iip1,jjp1) !--- CONTINENTAL MASK … … 252 248 #ifdef CPP_PARA 253 249 END IF 254 #ifdef CPP_XIOS 255 CALL xios_finalize 256 #endif 257 #ifdef CPP_MPI 250 IF (using_xios) CALL xios_finalize 258 251 IF (using_mpi) call MPI_FINALIZE(ierr) 259 #endif260 252 #endif 261 253 -
LMDZ6/branches/LMDZ_ECRad/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90
r4089 r4727 94 94 USE init_ssrf_m, ONLY: start_init_subsurf 95 95 USE phys_state_var_mod, ONLY: beta_aridity, delta_tsurf, awake_dens, cv_gen, & 96 ratqs_inter , rneb_ancien96 ratqs_inter_, rneb_ancien 97 97 !use ioipsl_getincom 98 98 IMPLICIT NONE … … 143 143 fact_cldcon, facttemps,ok_newmicro,iflag_radia, & 144 144 iflag_cldcon, & 145 iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &145 ratqsbas,ratqshaut,tau_ratqs, & 146 146 ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan, flag_volc_surfstrat, & 147 147 aerosol_couple, chemistry_couple, flag_aerosol, flag_aerosol_strat, & … … 285 285 end IF 286 286 287 ratqs_inter = 0.002287 ratqs_inter_ = 0.002 288 288 rneb_ancien = 0. 289 289 CALL phyredem( "startphy.nc" )
Note: See TracChangeset
for help on using the changeset viewer.