Changeset 3436 for LMDZ6/trunk
- Timestamp:
- Jan 22, 2019, 5:26:21 PM (6 years ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/create_etat0_limit_unstruct.F90
r3435 r3436 10 10 11 11 SUBROUTINE init_etat0_limit_unstruct 12 #ifdef CPP_XIOS 12 13 USE xios 13 14 USE mod_phys_lmdz_para … … 46 47 ENDIF 47 48 49 #endif 48 50 END SUBROUTINE init_etat0_limit_unstruct 49 51 50 52 SUBROUTINE create_etat0_limit_unstruct 53 #ifdef CPP_XIOS 51 54 USE mod_grid_phy_lmdz 52 55 USE create_etat0_unstruct_mod … … 93 96 ENDIF 94 97 98 #endif 95 99 END SUBROUTINE create_etat0_limit_unstruct 96 100 -
LMDZ6/trunk/libf/phylmd/readaerosol.F90
r3435 r3436 178 178 USE mod_phys_lmdz_para 179 179 USE mod_grid_phy_lmdz, ONLY: grid_type, unstructured 180 #ifdef CPP_XIOS 180 181 USE xios 182 #endif 181 183 IMPLICIT NONE 182 184 INTEGER, INTENT(IN) :: flag_aerosol 185 #ifdef CPP_XIOS 183 186 REAL,ALLOCATABLE :: lat_src(:) 184 187 REAL,ALLOCATABLE :: lon_src(:) … … 238 241 239 242 ENDIF 240 243 #endif 241 244 END SUBROUTINE init_aero_fromfile 242 245 … … 269 272 USE iophy, ONLY : io_lon, io_lat 270 273 USE print_control_mod, ONLY: lunout 274 #ifdef CPP_XIOS 271 275 USE xios 272 276 #endif 273 277 IMPLICIT NONE 274 278 … … 682 686 683 687 IF (grid_type==unstructured) THEN 688 #ifdef CPP_XIOS 684 689 IF (is_omp_master) THEN 685 690 CALL xios_send_field(TRIM(varname)//"_in",varyear) … … 697 702 CALL scatter_omp(psurf_interp,psurf_out) 698 703 first=.FALSE. 704 #endif 699 705 ELSE 700 706 ! Scatter global field to local domain at local process -
LMDZ6/trunk/libf/phylmd/readaerosolstrato.F90
r3435 r3436 15 15 USE aero_mod 16 16 USE dimphy 17 #ifdef CPP_XIOS 17 18 USE xios 18 19 #endif 19 20 implicit none 20 21 … … 143 144 144 145 IF (grid_type==unstructured) THEN 146 #ifdef CPP_XIOS 145 147 IF (is_omp_master) THEN 146 148 CALL xios_send_field("taustrat_in",tauaerstrat_mois) … … 151 153 ENDIF 152 154 CALL scatter_omp(tau_aer_strat_mpi,tau_aer_strat) 155 #endif 153 156 ELSE 154 157 !--scatter on all proc -
LMDZ6/trunk/libf/phylmd/readaerosolstrato_m.F90
r3435 r3436 24 24 25 25 SUBROUTINE init_readaerosolstrato1 26 #ifdef CPP_XIOS 26 27 USE netcdf 27 28 USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_dimid, & … … 29 30 USE mod_phys_lmdz_para 30 31 USE xios 31 USE YOERAD, ONLY : NLW32 ! USE YOERAD, ONLY : NLW 32 33 IMPLICIT NONE 33 34 REAL, POINTER:: latitude(:) … … 62 63 ENDIF 63 64 65 #endif 64 66 END SUBROUTINE init_readaerosolstrato1 65 67 66 68 SUBROUTINE init_readaerosolstrato2 69 #ifdef CPP_XIOS 67 70 USE netcdf 68 71 USE netcdf95, ONLY: nf95_close, nf95_gw_var, nf95_inq_dimid, & … … 70 73 USE mod_phys_lmdz_para 71 74 USE xios 72 USE YOERAD, ONLY : NLW75 ! USE YOERAD, ONLY : NLW 73 76 IMPLICIT NONE 74 77 REAL, POINTER:: latitude(:) … … 128 131 129 132 ENDIF 130 133 #endif 131 134 END SUBROUTINE init_readaerosolstrato2 132 135 -
LMDZ6/trunk/libf/phylmd/regr_horiz_time_climoz_m.F90
r3435 r3436 66 66 USE regular_lonlat_mod, ONLY: boundslon_reg, boundslat_reg, south, west, east 67 67 USE slopes_m, ONLY: slopes 68 #ifdef CPP_XIOS 68 69 USE xios 70 #endif 69 71 USE mod_phys_lmdz_para, ONLY: is_mpi_root, is_master, is_omp_master, gather, gather_mpi, bcast_mpi, klon_mpi 70 72 USE geometry_mod, ONLY : latitude_deg, ind_cell_glo … … 377 379 !============================================================================= 378 380 IF (grid_type==unstructured) THEN 381 #ifdef CPP_XIOS 379 382 nlat_ou=klon_mpi 380 383 … … 389 392 CALL xios_send_field("tro3_in",o3_in3bis(:,:,:,:,:)) 390 393 CALL xios_recv_field("tro3_out",o3_regr_lonlat(1,:,:,:,:)) 391 394 #endif 392 395 ELSE 393 396 … … 423 426 nlat_ou=nbp_lat 424 427 IF (grid_type==unstructured) THEN 428 #ifdef CPP_XIOS 425 429 CALL xios_send_field('o3_out',o3_out3) 426 430 ndims=3 427 431 ALLOCATE(o3_out3_glo(nlat_ou, nlev_in, ntim_ou, read_climoz)) 428 432 CALL gather_mpi(o3_out3(1,:,:,:,:), o3_out3_glo) 433 #endif 429 434 ENDIF 430 435 … … 467 472 468 473 IF (grid_type==unstructured) THEN 474 #ifdef CPP_XIOS 469 475 nlat_ou=klon_mpi 470 476 … … 480 486 IF(.NOT.lprev) o3_regr_lat(:,:, 0, :) = o3_regr_lat(:,:,12,:) 481 487 IF(.NOT.lnext) o3_regr_lat(:,:,13, :) = o3_regr_lat(:,:, 1,:) 482 488 #endif 483 489 484 490 ELSE
Note: See TracChangeset
for help on using the changeset viewer.