Changeset 4619 for LMDZ6/trunk/libf/phylmd/cosp
- Timestamp:
- Jul 10, 2023, 1:40:39 AM (18 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd/cosp
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cosp/cosp_output_mod.F90
r3308 r4619 235 235 USE time_phylmdz_mod, ONLY: day_ref, annee_ref, day_ini, start_time, itau_phy 236 236 USE print_control_mod, ONLY: lunout 237 238 #ifdef CPP_XIOS 239 ! ug Pour les sorties XIOS 240 USE wxios 241 #endif 237 ! ug Pour les sorties XIOS 238 USE wxios 242 239 243 240 IMPLICIT NONE … … 263 260 !!! Variables d'entree 264 261 265 #ifdef CPP_XIOS 266 ! ug Variables utilisées pour récupérer le calendrier pour xios 267 INTEGER :: x_an, x_mois, x_jour 268 REAL :: x_heure 269 INTEGER :: ini_an, ini_mois, ini_jour 270 REAL :: ini_heure 271 #endif 262 ! ug Variables utilisées pour récupérer le calendrier pour xios 263 INTEGER :: x_an, x_mois, x_jour 264 REAL :: x_heure 265 INTEGER :: ini_an, ini_mois, ini_jour 266 REAL :: ini_heure 272 267 273 268 WRITE(lunout,*) 'Debut cosp_output_mod.F90' … … 316 311 CALL ymds2ju(annee_ref, 1, day_ini, start_time, zjulian_start) 317 312 318 #ifdef CPP_XIOS 313 IF (using_xios) THEN 319 314 320 ! recuperer la valeur indefine Xios321 ! CALL xios_get_field_attr("clcalipso",default_value=Cosp_fill_value)322 ! Cosp_fill_value=missing_val323 Cosp_fill_value=0.324 print*,'Cosp_fill_value=',Cosp_fill_value325 ! if (use_vgrid) then326 ! print*,'vgrid%Nlvgrid, vgrid%z = ',vgrid%Nlvgrid, vgrid%z327 CALL wxios_add_vaxis("height", vgrid%Nlvgrid, vgrid%z)328 print*,'wxios_add_vaxis '329 ! else330 ! WRITE(lunout,*) 'wxios_add_vaxis "presnivs", vgrid%Nlvgrid ',vgrid%Nlvgrid331 ! CALL wxios_add_vaxis("presnivs", vgrid%Nlvgrid, presnivs)332 ! endif333 WRITE(lunout,*) 'wxios_add_vaxis height_mlev, Nlevlmdz ',Nlevlmdz334 CALL wxios_add_vaxis("height_mlev", Nlevlmdz, vgrid%mz)335 WRITE(lunout,*) 'wxios_add_vaxis sza, PARASOL_NREFL ',PARASOL_NREFL336 CALL wxios_add_vaxis("sza", PARASOL_NREFL, PARASOL_SZA)337 WRITE(lunout,*) 'wxios_add_vaxis pressure2 ',7338 CALL wxios_add_vaxis("pressure2", 7, ISCCP_PC)339 WRITE(lunout,*) 'wxios_add_vaxis column ',Ncolumns340 CALL wxios_add_vaxis("column", Ncolumns, column_ax)341 342 ! AI nov 2015343 CALL wxios_add_vaxis("temp", LIDAR_NTEMP, LIDAR_PHASE_TEMP)344 CALL wxios_add_vaxis("cth", MISR_N_CTH, MISR_CTH)345 CALL wxios_add_vaxis("dbze", DBZE_BINS, dbze_ax)346 CALL wxios_add_vaxis("scatratio", SR_BINS, sratio_ax)347 CALL wxios_add_vaxis("ReffIce", numMODISReffIceBins, reffICE_binCenters)348 CALL wxios_add_vaxis("ReffLiq", numMODISReffLiqBins, reffLIQ_binCenters)349 print*,'reffICE_binCenters=',reffICE_binCenters350 CALL wxios_add_vaxis("tau", 7, ISCCP_TAU)351 352 #endif 315 ! recuperer la valeur indefine Xios 316 ! CALL xios_get_field_attr("clcalipso",default_value=Cosp_fill_value) 317 ! Cosp_fill_value=missing_val 318 Cosp_fill_value=0. 319 print*,'Cosp_fill_value=',Cosp_fill_value 320 ! if (use_vgrid) then 321 ! print*,'vgrid%Nlvgrid, vgrid%z = ',vgrid%Nlvgrid, vgrid%z 322 CALL wxios_add_vaxis("height", vgrid%Nlvgrid, vgrid%z) 323 print*,'wxios_add_vaxis ' 324 ! else 325 ! WRITE(lunout,*) 'wxios_add_vaxis "presnivs", vgrid%Nlvgrid ',vgrid%Nlvgrid 326 ! CALL wxios_add_vaxis("presnivs", vgrid%Nlvgrid, presnivs) 327 ! endif 328 WRITE(lunout,*) 'wxios_add_vaxis height_mlev, Nlevlmdz ',Nlevlmdz 329 CALL wxios_add_vaxis("height_mlev", Nlevlmdz, vgrid%mz) 330 WRITE(lunout,*) 'wxios_add_vaxis sza, PARASOL_NREFL ',PARASOL_NREFL 331 CALL wxios_add_vaxis("sza", PARASOL_NREFL, PARASOL_SZA) 332 WRITE(lunout,*) 'wxios_add_vaxis pressure2 ',7 333 CALL wxios_add_vaxis("pressure2", 7, ISCCP_PC) 334 WRITE(lunout,*) 'wxios_add_vaxis column ',Ncolumns 335 CALL wxios_add_vaxis("column", Ncolumns, column_ax) 336 337 ! AI nov 2015 338 CALL wxios_add_vaxis("temp", LIDAR_NTEMP, LIDAR_PHASE_TEMP) 339 CALL wxios_add_vaxis("cth", MISR_N_CTH, MISR_CTH) 340 CALL wxios_add_vaxis("dbze", DBZE_BINS, dbze_ax) 341 CALL wxios_add_vaxis("scatratio", SR_BINS, sratio_ax) 342 CALL wxios_add_vaxis("ReffIce", numMODISReffIceBins, reffICE_binCenters) 343 CALL wxios_add_vaxis("ReffLiq", numMODISReffLiqBins, reffLIQ_binCenters) 344 print*,'reffICE_binCenters=',reffICE_binCenters 345 CALL wxios_add_vaxis("tau", 7, ISCCP_TAU) 346 347 ENDIF 353 348 354 349 zdtimemoy_cosp = freq_COSP ! Frequence ou l on moyenne … … 363 358 ! nhoricosp(iff),cosp_nidfiles(iff) 364 359 365 #ifdef CPP_XIOS 366 IF (.not. ok_all_xml) then367 WRITE(lunout,*) 'wxios_add_file ',cosp_outfilenames(iff)368 CALL wxios_add_file(cosp_outfilenames(iff),chfreq(iff),10)369 ENDIF370 #endif 360 IF (using_xios) THEN 361 IF (.not. ok_all_xml) then 362 WRITE(lunout,*) 'wxios_add_file ',cosp_outfilenames(iff) 363 CALL wxios_add_file(cosp_outfilenames(iff),chfreq(iff),10) 364 ENDIF 365 ENDIF 371 366 372 367 #ifndef CPP_IOIPSL_NO_OUTPUT -
LMDZ6/trunk/libf/phylmd/cosp/cosp_output_write_mod.F90
r3308 r4619 26 26 USE time_phylmdz_mod, ONLY: itau_phy, start_time, day_step_phy 27 27 USE print_control_mod, ONLY: lunout,prt_level 28 29 #ifdef CPP_XIOS30 28 USE wxios, only: wxios_closedef 31 USE xios, only: xios_update_calendar, xios_field_is_active 32 #endif 29 USE lmdz_xios, only: xios_update_calendar, xios_field_is_active, using_xios 33 30 IMPLICIT NONE 34 31 !!! Variables d'entree … … 58 55 real, dimension(Npoints,MISR_N_CTH,7) :: tmp_fi4da_misr 59 56 60 #ifdef CPP_XIOS 61 missing_val=missing_cosp62 #else 63 missing_val=0.64 #endif 57 IF (using_xios) THEN 58 missing_val=missing_cosp 59 ELSE 60 missing_val=0. 61 ENDIF 65 62 66 63 Nlevout = vgrid%Nlvgrid … … 90 87 ! endif 91 88 92 !! #ifdef CPP_XIOS89 !!IF (using_xios) THEN 93 90 ! !$OMP MASTER 94 91 !IF (cosp_varsdefined) THEN … … 101 98 ! !$OMP END MASTER 102 99 ! !$OMP BARRIER 103 !! #endif100 !!ENDIF 104 101 105 102 !!!! Sorties Calipso … … 163 160 if (cfg%Lproftemp) CALL histwrite3d_cosp(o_proftemp,stlidar%proftemp,nvert) !TIBO 164 161 165 #ifdef CPP_XIOS 166 do icl=1,SR_BINS 167 tmp_fi4da_cfadL(:,:,icl)=stlidar%cfad_sr(:,icl,:) 168 enddo 169 ! if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,stlidar%cfad_sr) 170 if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,tmp_fi4da_cfadL) 171 if (cfg%LprofSR) CALL histwrite4d_cosp(o_profSR,stlidar%profSR) !TIBO 172 #else 173 if (cfg%LcfadLidarsr532) then 162 IF (using_xios) THEN 174 163 do icl=1,SR_BINS 175 CALL histwrite3d_cosp(o_cfad_lidarsr532,stlidar%cfad_sr(:,icl,:),nvert,icl)164 tmp_fi4da_cfadL(:,:,icl)=stlidar%cfad_sr(:,icl,:) 176 165 enddo 177 endif 178 if (cfg%LprofSR) then 179 do icl=1,Ncolumns !TIBO 180 CALL histwrite3d_cosp(o_profSR,stlidar%profSR(:,icl,:),nvert,icl) !TIBO 181 enddo !TIBO 182 endif 183 #endif 166 ! if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,stlidar%cfad_sr) 167 if (cfg%LcfadLidarsr532) CALL histwrite4d_cosp(o_cfad_lidarsr532,tmp_fi4da_cfadL) 168 if (cfg%LprofSR) CALL histwrite4d_cosp(o_profSR,stlidar%profSR) !TIBO 169 ELSE 170 if (cfg%LcfadLidarsr532) then 171 do icl=1,SR_BINS 172 CALL histwrite3d_cosp(o_cfad_lidarsr532,stlidar%cfad_sr(:,icl,:),nvert,icl) 173 enddo 174 endif 175 if (cfg%LprofSR) then 176 do icl=1,Ncolumns !TIBO 177 CALL histwrite3d_cosp(o_profSR,stlidar%profSR(:,icl,:),nvert,icl) !TIBO 178 enddo !TIBO 179 endif 180 ENDIF 181 184 182 if (cfg%LparasolRefl) CALL histwrite3d_cosp(o_parasol_refl,stlidar%parasolrefl,nvertp) 185 183 … … 201 199 endif 202 200 203 #ifdef CPP_XIOS 204 if (cfg%Latb532) CALL histwrite4d_cosp(o_atb532,sglidar%beta_tot)205 #else 206 if (cfg%Latb532) then207 do icl=1,Ncolumns208 CALL histwrite3d_cosp(o_atb532,sglidar%beta_tot(:,icl,:),nvertmcosp,icl)209 enddo210 endif211 #endif 201 IF (using_xios) THEN 202 if (cfg%Latb532) CALL histwrite4d_cosp(o_atb532,sglidar%beta_tot) 203 ELSE 204 if (cfg%Latb532) then 205 do icl=1,Ncolumns 206 CALL histwrite3d_cosp(o_atb532,sglidar%beta_tot(:,icl,:),nvertmcosp,icl) 207 enddo 208 endif 209 ENDIF 212 210 213 211 if (cfg%LlidarBetaMol532) CALL histwrite3d_cosp(o_beta_mol532,sglidar%beta_mol,nvertmcosp) … … 219 217 220 218 where(stradar%cfad_ze == R_UNDEF) stradar%cfad_ze = missing_val 221 #ifdef CPP_XIOS 222 do icl=1,DBZE_BINS223 tmp_fi4da_cfadR(:,:,icl)=stradar%cfad_ze(:,icl,:)224 enddo225 if (cfg%Ldbze94) CALL histwrite4d_cosp(o_dbze94,sgradar%Ze_tot)226 !if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,stradar%cfad_ze)227 if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,tmp_fi4da_cfadR)228 #else 229 if (cfg%Ldbze94) then230 do icl=1,Ncolumns231 CALL histwrite3d_cosp(o_dbze94,sgradar%Ze_tot(:,icl,:),nvert,icl)232 enddo233 endif234 if (cfg%LcfadDbze94) then235 do icl=1,DBZE_BINS236 CALL histwrite3d_cosp(o_cfadDbze94,stradar%cfad_ze(:,icl,:),nvert,icl)237 enddo238 endif239 #endif 219 IF (using_xios) THEN 220 do icl=1,DBZE_BINS 221 tmp_fi4da_cfadR(:,:,icl)=stradar%cfad_ze(:,icl,:) 222 enddo 223 if (cfg%Ldbze94) CALL histwrite4d_cosp(o_dbze94,sgradar%Ze_tot) 224 ! if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,stradar%cfad_ze) 225 if (cfg%LcfadDbze94) CALL histwrite4d_cosp(o_cfadDbze94,tmp_fi4da_cfadR) 226 ELSE 227 if (cfg%Ldbze94) then 228 do icl=1,Ncolumns 229 CALL histwrite3d_cosp(o_dbze94,sgradar%Ze_tot(:,icl,:),nvert,icl) 230 enddo 231 endif 232 if (cfg%LcfadDbze94) then 233 do icl=1,DBZE_BINS 234 CALL histwrite3d_cosp(o_cfadDbze94,stradar%cfad_ze(:,icl,:),nvert,icl) 235 enddo 236 endif 237 ENDIF 240 238 endif 241 239 ! endif pour radar … … 264 262 265 263 CALL histwrite2d_cosp(o_sunlit,gbx%sunlit) 266 #ifdef CPP_XIOS 267 if (cfg%Lclisccp) CALL histwrite4d_cosp(o_clisccp2,isccp%fq_isccp)268 #else 269 if (cfg%Lclisccp) then270 do icl=1,7271 CALL histwrite3d_cosp(o_clisccp2,isccp%fq_isccp(:,icl,:),nvertisccp,icl)272 enddo273 endif274 #endif 264 IF (using_xios) THEN 265 if (cfg%Lclisccp) CALL histwrite4d_cosp(o_clisccp2,isccp%fq_isccp) 266 ELSE 267 if (cfg%Lclisccp) then 268 do icl=1,7 269 CALL histwrite3d_cosp(o_clisccp2,isccp%fq_isccp(:,icl,:),nvertisccp,icl) 270 enddo 271 endif 272 ENDIF 275 273 276 274 if (cfg%Lboxtauisccp) CALL histwrite3d_cosp(o_boxtauisccp,isccp%boxtau,nvertcol) … … 288 286 where(misr%fq_MISR == R_UNDEF) misr%fq_MISR = missing_val 289 287 290 #ifdef CPP_XIOS 291 do icl=1,MISR_N_CTH292 tmp_fi4da_misr(:,icl,:)=misr%fq_MISR(:,:,icl)293 enddo294 ! if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,misr%fq_MISR)295 if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,tmp_fi4da_misr)296 #else 297 if (cfg%LclMISR) then298 do icl=1,7299 CALL histwrite3d_cosp(o_clMISR,misr%fq_MISR(:,icl,:),nvertmisr,icl)300 enddo301 endif302 #endif 288 IF (using_xios) THEN 289 do icl=1,MISR_N_CTH 290 tmp_fi4da_misr(:,icl,:)=misr%fq_MISR(:,:,icl) 291 enddo 292 ! if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,misr%fq_MISR) 293 if (cfg%LclMISR) CALL histwrite4d_cosp(o_clMISR,tmp_fi4da_misr) 294 ELSE 295 if (cfg%LclMISR) then 296 do icl=1,7 297 CALL histwrite3d_cosp(o_clMISR,misr%fq_MISR(:,icl,:),nvertmisr,icl) 298 enddo 299 endif 300 ENDIF 303 301 endif 304 302 ! endif pour Misr … … 365 363 modis%Optical_Thickness_vs_Cloud_Top_Pressure = missing_val 366 364 367 #ifdef CPP_XIOS 368 if (cfg%Lclmodis) CALL histwrite4d_cosp(o_clmodis,modis%Optical_Thickness_vs_Cloud_Top_Pressure)369 #else 370 if (cfg%Lclmodis) then371 do icl=1,7372 CALL histwrite3d_cosp(o_clmodis, &373 modis%Optical_Thickness_vs_Cloud_Top_Pressure(:,icl,:),nvertisccp,icl)374 enddo375 endif376 #endif 365 IF (using_xios) THEN 366 if (cfg%Lclmodis) CALL histwrite4d_cosp(o_clmodis,modis%Optical_Thickness_vs_Cloud_Top_Pressure) 367 ELSE 368 if (cfg%Lclmodis) then 369 do icl=1,7 370 CALL histwrite3d_cosp(o_clmodis, & 371 modis%Optical_Thickness_vs_Cloud_Top_Pressure(:,icl,:),nvertisccp,icl) 372 enddo 373 endif 374 ENDIF 377 375 378 376 where(modis%Optical_Thickness_vs_ReffIce == R_UNDEF) & … … 382 380 modis%Optical_Thickness_vs_ReffLiq = missing_val 383 381 384 #ifdef CPP_XIOS 385 if (cfg%Lcrimodis) CALL histwrite4d_cosp(o_crimodis,modis%Optical_Thickness_vs_ReffIce)386 if (cfg%Lcrlmodis) CALL histwrite4d_cosp(o_crlmodis,modis%Optical_Thickness_vs_ReffLiq)387 #else 388 if (cfg%Lcrimodis) then389 do icl=1,7390 CALL histwrite3d_cosp(o_crimodis, &391 modis%Optical_Thickness_vs_ReffIce(:,icl,:),nvertReffIce,icl)392 enddo393 endif394 if (cfg%Lcrlmodis) then395 do icl=1,7396 CALL histwrite3d_cosp(o_crlmodis, &397 modis%Optical_Thickness_vs_ReffLiq(:,icl,:),nvertReffLiq,icl)398 enddo399 endif400 #endif 382 IF (using_xios) THEN 383 if (cfg%Lcrimodis) CALL histwrite4d_cosp(o_crimodis,modis%Optical_Thickness_vs_ReffIce) 384 if (cfg%Lcrlmodis) CALL histwrite4d_cosp(o_crlmodis,modis%Optical_Thickness_vs_ReffLiq) 385 ELSE 386 if (cfg%Lcrimodis) then 387 do icl=1,7 388 CALL histwrite3d_cosp(o_crimodis, & 389 modis%Optical_Thickness_vs_ReffIce(:,icl,:),nvertReffIce,icl) 390 enddo 391 endif 392 if (cfg%Lcrlmodis) then 393 do icl=1,7 394 CALL histwrite3d_cosp(o_crlmodis, & 395 modis%Optical_Thickness_vs_ReffLiq(:,icl,:),nvertReffLiq,icl) 396 enddo 397 endif 398 ENDIF 401 399 endif !modis 402 400 … … 410 408 ENDDO ! iff 411 409 #endif 412 ! Fermeture dans phys_output_write413 !#ifdef CPP_XIOS414 !On finalise l'initialisation:415 !CALL wxios_closedef()416 !#endif417 410 418 411 !$OMP END MASTER … … 451 444 USE mod_grid_phy_lmdz, ONLY: nbp_lon 452 445 USE print_control_mod, ONLY: lunout,prt_level 453 #ifdef CPP_XIOS 454 USE wxios 455 #endif 446 USE wxios 456 447 457 448 IMPLICIT NONE … … 485 476 ENDIF 486 477 487 #ifdef CPP_XIOS 488 IF (.not. ok_all_xml) then489 IF ( var%cles(iff) ) THEN490 if (prt_level >= 10) then491 492 endif493 CALL wxios_add_field_to_file(var%name, 2, cosp_nidfiles(iff), cosp_outfilenames(iff), &478 IF (using_xios) THEN 479 IF (.not. ok_all_xml) then 480 IF ( var%cles(iff) ) THEN 481 if (prt_level >= 10) then 482 WRITE(lunout,*)'Appel wxios_add_field_to_file var%name =',var%name 483 endif 484 CALL wxios_add_field_to_file(var%name, 2, cosp_nidfiles(iff), cosp_outfilenames(iff), & 494 485 var%description, var%unit, 1, typeecrit) 495 ENDIF496 ENDIF497 #endif 486 ENDIF 487 ENDIF 488 ENDIF 498 489 499 490 #ifndef CPP_IOIPSL_NO_OUTPUT … … 514 505 USE mod_grid_phy_lmdz, ONLY: nbp_lon 515 506 USE print_control_mod, ONLY: lunout,prt_level 516 517 #ifdef CPP_XIOS 518 USE wxios 519 #endif 520 507 USE wxios 521 508 522 509 IMPLICIT NONE … … 591 578 ENDIF 592 579 593 #ifdef CPP_XIOS 580 IF (using_xios) THEN 594 581 IF (.not. ok_all_xml) then 595 582 IF ( var%cles(iff) ) THEN … … 601 588 ENDIF 602 589 ENDIF 603 #endif 590 ENDIF 604 591 605 592 #ifndef CPP_IOIPSL_NO_OUTPUT … … 621 608 USE mod_grid_phy_lmdz, ONLY: nbp_lon 622 609 USE print_control_mod, ONLY: lunout,prt_level 623 624 #ifdef CPP_XIOS 625 USE xios, only: xios_send_field 626 #endif 610 USE lmdz_xios, only: xios_send_field, using_xios 627 611 628 612 IMPLICIT NONE … … 672 656 CALL histwrite(cosp_nidfiles(iff),var%name,itau_iocosp,Field2d,nbp_lon*jj_nb,index2d) 673 657 #endif 674 675 #ifdef CPP_XIOS 658 deallocate(index2d) 659 IF (using_xios) THEN 676 660 IF (.not. ok_all_xml) then 677 661 if (firstx) then … … 683 667 endif 684 668 ENDIF 685 #endif 686 669 ENDIF 670 ENDIF 687 671 ENDDO 688 672 689 #ifdef CPP_XIOS 673 IF (using_xios) THEN 690 674 IF (ok_all_xml) THEN 691 675 if (prt_level >= 1) then … … 694 678 CALL xios_send_field(var%name, Field2d) 695 679 ENDIF 696 #endif 680 ENDIF 697 681 698 682 !$OMP END MASTER … … 710 694 USE mod_grid_phy_lmdz, ONLY: nbp_lon 711 695 USE print_control_mod, ONLY: lunout,prt_level 712 713 #ifdef CPP_XIOS 714 USE xios, only: xios_send_field 715 #endif 716 696 USE lmdz_xios, only: xios_send_field, using_xios 717 697 718 698 IMPLICIT NONE … … 776 756 #endif 777 757 778 #ifdef CPP_XIOS 758 IF (using_xios) THEN 779 759 IF (.not. ok_all_xml) then 780 760 IF (firstx) THEN … … 784 764 ENDIF 785 765 ENDIF 786 #endif 766 ENDIF 787 767 deallocate(index3d) 788 768 ENDIF 789 769 ENDDO 790 #ifdef CPP_XIOS 770 771 IF (using_xios) THEN 791 772 IF (ok_all_xml) THEN 792 773 CALL xios_send_field(nom, Field3d(:,:,1:nlev)) 793 774 IF (prt_level >= 1) WRITE(lunout,*)'xios_send_field ',var%name 794 775 ENDIF 795 #endif 776 ENDIF 796 777 797 778 !$OMP END MASTER … … 809 790 USE mod_grid_phy_lmdz, ONLY: nbp_lon 810 791 USE print_control_mod, ONLY: lunout,prt_level 811 812 #ifdef CPP_XIOS 813 USE xios, only: xios_send_field 814 #endif 815 792 USE lmdz_xios, only: xios_send_field, using_xios 816 793 817 794 IMPLICIT NONE … … 842 819 CALL grid1Dto2D_mpi(buffer_omp,field4d) 843 820 844 #ifdef CPP_XIOS 821 IF (using_xios) THEN 845 822 ! IF (ok_all_xml) THEN 846 823 CALL xios_send_field(var%name, Field4d(:,:,1:nlev,1:nlev2)) 847 824 IF (prt_level >= 1) WRITE(lunout,*)'xios_send_field ',var%name 848 825 ! ENDIF 849 #endif 826 ENDIF 850 827 851 828 !$OMP END MASTER -
LMDZ6/trunk/libf/phylmd/cosp/cosp_read_otputkeys.F90
r3377 r4619 226 226 227 227 SUBROUTINE READ_COSP_OUTPUT_NL(itap,cosp_nl,cfg) 228 229 #ifdef CPP_XIOS 230 USE xios, ONLY: xios_field_is_active 231 #endif 228 USE lmdz_xios, ONLY: xios_field_is_active, using_xios 232 229 implicit none 233 230 character(len=*),intent(in) :: cosp_nl … … 746 743 USE MOD_COSP_CONSTANTS 747 744 USE MOD_COSP_TYPES 748 #ifdef CPP_XIOS 749 USE xios, ONLY: xios_field_is_active 750 #endif 745 USE lmdz_xios, ONLY: xios_field_is_active,using_xios 751 746 implicit none 752 747 type(cosp_config),intent(out) :: cfg 753 748 integer :: i 754 755 #ifdef CPP_XIOS756 749 757 750 logical :: Lradar_sim,Llidar_sim,Lisccp_sim,Lmodis_sim,Lmisr_sim,Lrttov_sim, Lstats, & … … 776 769 character(len=32) :: out_list(N_OUT_LIST) 777 770 778 do i=1,N_OUT_LIST 779 cfg%out_list(i)='' 780 enddo 771 IF (using_xios) THEN 772 773 do i=1,N_OUT_LIST 774 cfg%out_list(i)='' 775 enddo 781 776 782 777 LcfadDbze94 = .false. … … 1232 1227 cfg%Lrttov_sim = Lrttov_sim 1233 1228 1234 #endif 1229 ENDIF ! using_xios 1235 1230 1236 1231 END SUBROUTINE read_xiosfieldactive -
LMDZ6/trunk/libf/phylmd/cosp/mod_cosp.F90
r4593 r4619 23 23 ! OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 25 INCLUDE"cosp_defs.h"25 #include "cosp_defs.h" 26 26 MODULE MOD_COSP 27 27 USE MOD_COSP_TYPES -
LMDZ6/trunk/libf/phylmd/cosp/mod_cosp_constants.F90
r4593 r4619 33 33 ! 34 34 35 INCLUDE "cosp_defs.h"35 #INCLUDE "cosp_defs.h" 36 36 MODULE MOD_COSP_CONSTANTS 37 37 IMPLICIT NONE -
LMDZ6/trunk/libf/phylmd/cosp/mod_cosp_simulator.F90
r4593 r4619 31 31 ! 32 32 33 INCLUDE"cosp_defs.h"33 #include "cosp_defs.h" 34 34 MODULE MOD_COSP_SIMULATOR 35 35 USE MOD_COSP_CONSTANTS, ONLY: I_RADAR, I_LIDAR, I_ISCCP, I_MISR, I_MODIS, & -
LMDZ6/trunk/libf/phylmd/cosp/mod_cosp_stats.F90
r4593 r4619 36 36 ! 37 37 ! 38 INCLUDE"cosp_defs.h"38 #include "cosp_defs.h" 39 39 MODULE MOD_COSP_STATS 40 40 USE MOD_COSP_CONSTANTS -
LMDZ6/trunk/libf/phylmd/cosp/phys_cosp.F90
r4593 r4619 73 73 74 74 !! AI rajouter 75 INCLUDE"cosp_defs.h"75 #include "cosp_defs.h" 76 76 USE MOD_COSP_CONSTANTS 77 77 USE MOD_COSP_TYPES … … 84 84 use cosp_output_write_mod 85 85 ! use MOD_COSP_Modis_Simulator, only : cosp_modis 86 #ifdef CPP_XIOS 87 USE xios, ONLY: xios_field_is_active 88 #endif 86 USE lmdz_xios, ONLY: xios_field_is_active, using_xios 89 87 use cosp_read_otputkeys 90 88 … … 183 181 184 182 ! Clefs Outputs initialisation 185 #ifdef CPP_XIOS 186 call cosp_outputkeys_init(cfg) 187 #else 188 call read_cosp_output_nl(itap,cosp_output_nl,cfg) 189 #endif 183 IF (using_xios) THEN 184 call cosp_outputkeys_init(cfg) 185 ELSE 186 call read_cosp_output_nl(itap,cosp_output_nl,cfg) 187 ENDIF 188 190 189 !!! call cosp_outputkeys_test(cfg) 191 190 print*,' Cles des differents simulateurs cosp a itap :',itap … … 203 202 !!! Ici on modifie les cles logiques pour les outputs selon les champs actives dans les .xml 204 203 if ((itap.gt.1).and.(first_write))then 205 #ifdef CPP_XIOS 206 call read_xiosfieldactive(cfg)207 #endif 204 205 IF (using_xios) call read_xiosfieldactive(cfg) 206 208 207 first_write=.false. 209 208
Note: See TracChangeset
for help on using the changeset viewer.