Changeset 4103 for LMDZ6/trunk/libf/phylmd/iophy.F90
- Timestamp:
- Mar 17, 2022, 11:51:36 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/iophy.F90
r4046 r4103 975 975 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat, grid_type, unstructured, regular_lonlat 976 976 #ifdef CPP_XIOS 977 USE xios, ONLY: xios_send_field 977 USE xios, ONLY: xios_send_field, xios_field_is_active 978 978 #endif 979 979 USE print_control_mod, ONLY: lunout, prt_level … … 996 996 INTEGER :: ip 997 997 REAL, ALLOCATABLE, DIMENSION(:) :: fieldok 998 logical, save :: is_active = .true. 998 999 999 1000 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite2d_phy for ',trim(var%name) … … 1035 1036 1036 1037 ELSE 1038 #ifdef CPP_XIOS 1039 IF (ok_all_xml) THEN 1040 !$omp barrier 1041 !$omp master 1042 is_active = xios_field_is_active(var%name, at_current_timestep_arg=.false.) 1043 !$omp end master 1044 !$omp barrier 1045 IF(.not. is_active) RETURN 1046 ENDIF 1047 #endif 1037 1048 1038 1049 !Et sinon on.... écrit … … 1176 1187 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat, grid_type, regular_lonlat, unstructured 1177 1188 #ifdef CPP_XIOS 1178 USE xios, ONLY: xios_send_field 1189 USE xios, ONLY: xios_send_field, xios_field_is_active 1179 1190 #endif 1180 1191 USE print_control_mod, ONLY: prt_level,lunout … … 1195 1206 INTEGER, ALLOCATABLE, DIMENSION(:) :: index3d 1196 1207 REAL,ALLOCATABLE, DIMENSION(:,:) :: fieldok 1208 logical, save :: is_active = .true. 1197 1209 1198 1210 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite3d_phy for ', trim(var%name) … … 1222 1234 CALL bcast_omp(swaerofree_diag) 1223 1235 ELSE 1236 #ifdef CPP_XIOS 1237 IF (ok_all_xml) THEN 1238 !$omp barrier 1239 !$omp master 1240 is_active = xios_field_is_active(var%name, at_current_timestep_arg=.false.) 1241 !$omp end master 1242 !$omp barrier 1243 IF(.not. is_active) RETURN 1244 ENDIF 1245 #endif 1246 1224 1247 !Et sinon on.... écrit 1225 1226 1248 IF (SIZE(field,1)/=klon .AND. SIZE(field,1)/=klev .AND. SIZE(field,1)/=klev+1) CALL abort_physic('iophy::histwrite3d_phy','Field first DIMENSION not equal to klon/klev',1) 1227 1249
Note: See TracChangeset
for help on using the changeset viewer.