Changeset 5103 for LMDZ6/branches/Amaury_dev/libf/phylmd/iophy.F90
- Timestamp:
- Jul 23, 2024, 3:29:36 PM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/iophy.F90
r5101 r5103 12 12 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: nptabij 13 13 INTEGER, SAVE :: itau_iophy 14 LOGICAL :: check_dim = . false.14 LOGICAL :: check_dim = .FALSE. 15 15 16 16 !$OMP THREADPRIVATE(itau_iophy) … … 43 43 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, klon_glo, grid_type, unstructured 44 44 USE print_control_mod, ONLY: prt_level,lunout 45 #ifdef CPP_IOIPSL46 45 USE ioipsl, ONLY: flio_dom_set 47 #endif48 46 use wxios, ONLY: wxios_domain_param, wxios_domain_param_unstructured, wxios_context_init, using_xios 49 47 IMPLICIT NONE … … 200 198 201 199 #ifndef CPP_IOIPSL_NO_OUTPUT 202 callflio_dom_set(mpi_size,mpi_rank,ddid,dsg,dsl,dpf,dpl,dhs,dhe, &200 CALL flio_dom_set(mpi_size,mpi_rank,ddid,dsg,dsl,dpf,dpl,dhs,dhe, & 203 201 'APPLE',phys_domain_id) 204 202 #endif … … 324 322 DO i=1,pim 325 323 326 ! print*,'CFMIP_iophy i tabij lon lat',i,tabij(i),plon(i),plat(i)324 ! PRINT*,'CFMIP_iophy i tabij lon lat',i,tabij(i),plon(i),plat(i) 327 325 328 326 plon_bounds(i,1)=rlon_glo(tabij(i)-1) … … 346 344 plat_bounds(i,2)=rlat_glo(tabij(i)+nbp_lon) 347 345 348 ! print*,'CFMIP_iophy point i lon lon_bds',i,plon_bounds(i,1),rlon_glo(tabij(i)),plon_bounds(i,2)349 ! print*,'CFMIP_iophy point i lat lat_bds',i,plat_bounds(i,1),rlat_glo(tabij(i)),plat_bounds(i,2)346 ! PRINT*,'CFMIP_iophy point i lon lon_bds',i,plon_bounds(i,1),rlon_glo(tabij(i)),plon_bounds(i,2) 347 ! PRINT*,'CFMIP_iophy point i lat lat_bds',i,plat_bounds(i,1),rlat_glo(tabij(i)),plat_bounds(i,2) 350 348 351 349 ENDDO … … 370 368 371 369 DO i=1,pim 372 ! print*,'CFMIP_iophy i tabij lon lat',i,tabij(i),plon(i),plat(i)370 ! PRINT*,'CFMIP_iophy i tabij lon lat',i,tabij(i),plon(i),plat(i) 373 371 374 372 plon_bounds(i,1)=zx_lon(ipt(i)-1,jpt(i)) … … 397 395 ENDIF 398 396 399 ! print*,'CFMIP_iophy point i lon lon_bds',i,plon_bounds(i,1),rlon(tabij(i)),plon_bounds(i,2)400 ! print*,'CFMIP_iophy point i lat lat_bds',i,plat_bounds(i,1),rlat(tabij(i)),plat_bounds(i,2)397 ! PRINT*,'CFMIP_iophy point i lon lon_bds',i,plon_bounds(i,1),rlon(tabij(i)),plon_bounds(i,2) 398 ! PRINT*,'CFMIP_iophy point i lat lat_bds',i,plat_bounds(i,1),rlat(tabij(i)),plat_bounds(i,2) 401 399 402 400 ENDDO … … 417 415 ENDIF 418 416 ENDDO 419 ! print*,'CFMIP_iophy mpi_rank npstn',mpi_rank,npstn417 ! PRINT*,'CFMIP_iophy mpi_rank npstn',mpi_rank,npstn 420 418 IF(.NOT. ALLOCATED(nptabij)) THEN 421 419 ALLOCATE(nptabij(npstn)) … … 428 426 npproc=npproc+1 429 427 nptabij(npproc)=tabij(ip) 430 ! print*,'mpi_rank npproc ip plon plat tabij=',mpi_rank,npproc,ip, &428 ! PRINT*,'mpi_rank npproc ip plon plat tabij=',mpi_rank,npproc,ip, & 431 429 ! plon(ip),plat(ip),tabij(ip) 432 430 npplon(npproc)=plon(ip) … … 439 437 !!! print qui sert a reordonner les points stations selon l'ordre CFMIP 440 438 !!! ne pas enlever 441 print*,'iophy_mpi rank ip lon lat',mpi_rank,ip,plon(ip),plat(ip)439 PRINT*,'iophy_mpi rank ip lon lat',mpi_rank,ip,plon(ip),plat(ip) 442 440 !!! 443 441 ENDIF … … 638 636 var%description, var%unit, var%flag(iff), typeecrit) 639 637 IF (prt_level >= 10) THEN 640 WRITE(lunout,*) 'histdef2d: callwxios_add_field_to_file var%name iff: ', &638 WRITE(lunout,*) 'histdef2d: CALL wxios_add_field_to_file var%name iff: ', & 641 639 trim(var%name),iff 642 640 ENDIF … … 753 751 var%description, var%unit, var%flag(iff), typeecrit) 754 752 IF (prt_level >= 10) THEN 755 WRITE(lunout,*) 'histdef3d: callwxios_add_field_to_file var%name iff: ', &753 WRITE(lunout,*) 'histdef3d: CALL wxios_add_field_to_file var%name iff: ', & 756 754 trim(var%name),iff 757 755 ENDIF … … 851 849 ELSE 852 850 DO ip=1, npstn 853 ! print*,'histwrite2d is_sequential npstn ip name nptabij',npstn,ip,name,nptabij(ip)851 ! PRINT*,'histwrite2d is_sequential npstn ip name nptabij',npstn,ip,name,nptabij(ip) 854 852 IF(nptabij(ip)>=klon_mpi_begin.AND. & 855 853 nptabij(ip)<=klon_mpi_end) THEN … … 975 973 INTEGER :: ip 976 974 REAL, ALLOCATABLE, DIMENSION(:) :: fieldok 977 logical, save :: is_active = . true.975 logical, save :: is_active = .TRUE. 978 976 979 977 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite2d_phy for ',trim(var%name) … … 1019 1017 !$omp barrier 1020 1018 !$omp master 1021 is_active = xios_field_is_active(var%name, at_current_timestep_arg=. false.)1019 is_active = xios_field_is_active(var%name, at_current_timestep_arg=.FALSE.) 1022 1020 !$omp end master 1023 1021 !$omp barrier … … 1044 1042 1045 1043 ! La boucle sur les fichiers: 1046 firstx=. true.1044 firstx=.TRUE. 1047 1045 1048 1046 IF (ok_all_xml) THEN … … 1082 1080 write(lunout,*)'Dans iophy histwrite2D,iff,var%name ',& 1083 1081 iff,trim(var%name) 1084 write(lunout,*)"histwrite2d_phy:.NOT.clef_stations(iff)and iff==iff_beg, callxios_send_field"1082 write(lunout,*)"histwrite2d_phy:.NOT.clef_stations(iff)and iff==iff_beg, CALL xios_send_field" 1085 1083 ENDIF 1086 1084 IF (grid_type==regular_lonlat) THEN … … 1098 1096 ENDIF 1099 1097 1100 firstx=. false.1098 firstx=.FALSE. 1101 1099 ENDIF 1102 1100 ENDIF … … 1111 1109 ! IF (iff == iff_beg) THEN 1112 1110 ! IF (prt_level >= 10) THEN 1113 ! write(lunout,*)"histwrite2d_phy: .NOT.clef_stations(iff) and iff==iff_beg, callxios_send_field"1111 ! write(lunout,*)"histwrite2d_phy: .NOT.clef_stations(iff) and iff==iff_beg, CALL xios_send_field" 1114 1112 ! ENDIF 1115 1113 ! CALL xios_send_field(var%name, Field2d) … … 1135 1133 #ifndef CPP_IOIPSL_NO_OUTPUT 1136 1134 IF (prt_level >= 10) THEN 1137 write(lunout,*)"histwrite2d_phy: clef_stations(iff) and iff==iff_beg, callwxios_write_2D"1135 write(lunout,*)"histwrite2d_phy: clef_stations(iff) and iff==iff_beg, CALL wxios_write_2D" 1138 1136 ENDIF 1139 1137 CALL histwrite(nid_files(iff),var%name,itau_iophy,fieldok,npstn,index2d) … … 1185 1183 INTEGER, ALLOCATABLE, DIMENSION(:) :: index3d 1186 1184 REAL,ALLOCATABLE, DIMENSION(:,:) :: fieldok 1187 logical, save :: is_active = . true.1185 logical, save :: is_active = .TRUE. 1188 1186 1189 1187 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite3d_phy for ', trim(var%name) … … 1217 1215 !$omp barrier 1218 1216 !$omp master 1219 is_active = xios_field_is_active(var%name, at_current_timestep_arg=. false.)1217 is_active = xios_field_is_active(var%name, at_current_timestep_arg=.FALSE.) 1220 1218 !$omp end master 1221 1219 !$omp barrier … … 1247 1245 1248 1246 ! BOUCLE SUR LES FICHIERS 1249 firstx=. true.1247 firstx=.TRUE. 1250 1248 1251 1249 IF (ok_all_xml) THEN … … 1281 1279 write(lunout,*)'Dans iophy, histwrite3D iff nlev klev firstx', & 1282 1280 iff,nlev,klev, firstx 1283 write(lunout,*)'histwrite3d_phy: callxios_send_field for ', &1281 write(lunout,*)'histwrite3d_phy: CALL xios_send_field for ', & 1284 1282 trim(var%name), ' with iim jjm nlevx = ', & 1285 1283 nbp_lon,jj_nb,nlevx … … 1299 1297 ENDIF 1300 1298 1301 firstx=. false.1299 firstx=.FALSE. 1302 1300 ENDIF 1303 1301 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.