Changeset 2137 for LMDZ5/trunk/libf
- Timestamp:
- Oct 29, 2014, 8:47:46 PM (10 years ago)
- Location:
- LMDZ5/trunk/libf
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/bibio/wxios.F90
r2095 r2137 432 432 ! Pour déclarer un champ !!!!!!!!!!!!!!!!! 433 433 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 434 SUBROUTINE wxios_add_field_to_file(fieldname, fdim, fid, fname, fieldlongname, fieldunit, field_level, op )434 SUBROUTINE wxios_add_field_to_file(fieldname, fdim, fid, fname, fieldlongname, fieldunit, field_level, op, nam_axvert) 435 435 IMPLICIT NONE 436 436 INCLUDE 'iniprint.h' … … 445 445 446 446 CHARACTER(len=20) :: axis_id ! Ehouarn: dangerous... 447 CHARACTER(len=20), INTENT(IN), OPTIONAL :: nam_axvert 447 448 CHARACTER(len=100) :: operation 448 449 TYPE(xios_file) :: f … … 458 459 ELSE 459 460 axis_id="plev" 461 ENDIF 462 463 IF (PRESENT(nam_axvert)) THEN 464 axis_id=nam_axvert 465 print*,'nam_axvert=',axis_id 460 466 ENDIF 461 467 -
LMDZ5/trunk/libf/cosp/cosp_output_mod.F90
r2080 r2137 17 17 INTEGER, DIMENSION(3), SAVE :: nhoricosp, nvert, nvertmcosp, nvertcol, nvertisccp, nvertp 18 18 REAL, DIMENSION(3), SAVE :: zoutm_cosp 19 !$OMP THREADPRIVATE(nhori , nvert, nvertmcosp, nvertcol, nvertisccp, nvertp, zoutm_cosp)19 !$OMP THREADPRIVATE(nhoricosp, nvert, nvertmcosp, nvertcol, nvertisccp, nvertp, zoutm_cosp) 20 20 REAL, SAVE :: zdtimemoy_cosp 21 21 !$OMP THREADPRIVATE(zdtimemoy_cosp) … … 78 78 by the ISCCP Simulator","K", (/ ('', i=1, 3) /)) 79 79 80 ! LOGICAL, SAVE :: cosp_varsdefined = .FALSE. ! ug PAS THREADPRIVATE ET C'EST NORMAL 81 LOGICAL, SAVE :: cosp_varsdefined 80 LOGICAL, SAVE :: cosp_varsdefined = .FALSE. ! ug PAS THREADPRIVATE ET C'EST NORMAL 82 81 83 82 CONTAINS … … 89 88 90 89 SUBROUTINE cosp_output_open(Nlevlmdz, Ncolumns, presnivs, dtime, freq_cosp, & 91 ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, &90 ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, ok_all_xml, & 92 91 ecrit_mth, ecrit_day, ecrit_hf, use_vgrid, vgrid) 93 92 … … 108 107 real,dimension(Nlevlmdz) :: presnivs 109 108 real :: dtime, freq_cosp, ecrit_day, ecrit_hf, ecrit_mth 110 logical :: ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, use_vgrid 109 logical :: ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, use_vgrid, ok_all_xml 111 110 type(cosp_vgrid) :: vgrid ! Information on vertical grid of stats 112 111 113 112 !!! Variables locales 114 113 integer :: idayref, iff, ii 115 real :: zjulian 114 real :: zjulian,zjulian_start 116 115 real,dimension(Ncolumns) :: column_ax 116 CHARACTER(LEN=20), DIMENSION(3) :: chfreq = (/ '1day', '1d', '3h' /) 117 117 118 118 !!! Variables d'entree … … 124 124 INTEGER :: x_an, x_mois, x_jour 125 125 REAL :: x_heure 126 INTEGER :: ini_an, ini_mois, ini_jour 127 REAL :: ini_heure 126 128 #endif 127 129 128 130 WRITE(lunout,*) 'Debut cosp_output_mod.F90' 131 print*,'cosp_varsdefined',cosp_varsdefined 129 132 ! Initialisations (Valeurs par defaut) 130 133 … … 154 157 CALL getin('cosp_outfilenames',cosp_outfilenames) 155 158 CALL getin('cosp_outfilekeys',cosp_outfilekeys) 156 CALL getin('cosp_ outfiletimesteps',cosp_ecritfiles)159 CALL getin('cosp_ecritfiles',cosp_ecritfiles) 157 160 CALL getin('cosp_outfiletypes',cosp_outfiletypes) 158 161 159 162 WRITE(lunout,*)'cosp_outfilenames=',cosp_outfilenames 160 163 WRITE(lunout,*)'cosp_outfilekeys=',cosp_outfilekeys 161 WRITE(lunout,*)'cosp_ outfiletimesteps=',cosp_ecritfiles164 WRITE(lunout,*)'cosp_ecritfiles=',cosp_ecritfiles 162 165 WRITE(lunout,*)'cosp_outfiletypes=',cosp_outfiletypes 163 164 #ifdef CPP_XIOS 165 ! ug Réglage du calendrier xios 166 167 idayref = day_ref 168 CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian) 169 CALL ymds2ju(annee_ref, 1, day_ini, start_time, zjulian_start) 170 171 #ifdef CPP_XIOS 172 ! ug R\'eglage du calendrier xios 166 173 !Temps julian => an, mois, jour, heure 167 CALL ymds2ju(annee_ref, 1, day_ref, 0.0, zjulian)168 174 CALL ju2ymds(zjulian, x_an, x_mois, x_jour, x_heure) 169 CALL wxios_set_cal(dtime, calend, x_an, x_mois, x_jour, x_heure) 175 CALL ju2ymds(zjulian_start, ini_an, ini_mois, ini_jour, ini_heure) 176 CALL wxios_set_cal(dtime, calend, x_an, x_mois, x_jour, x_heure, ini_an, & 177 ini_mois, ini_jour, ini_heure ) 178 ! ug d�claration des axes verticaux de chaque fichier: 179 if (use_vgrid) then 180 CALL wxios_add_vaxis("height", vgrid%Nlvgrid, vgrid%z) 181 else 182 WRITE(lunout,*) 'wxios_add_vaxis "presnivs", vgrid%Nlvgrid ',vgrid%Nlvgrid 183 CALL wxios_add_vaxis("presnivs", vgrid%Nlvgrid, presnivs) 184 endif 185 WRITE(lunout,*) 'wxios_add_vaxis height_mlev, Nlevlmdz ',Nlevlmdz 186 CALL wxios_add_vaxis("height_mlev", Nlevlmdz, vgrid%mz) 187 WRITE(lunout,*) 'wxios_add_vaxis sza, PARASOL_NREFL ',PARASOL_NREFL 188 CALL wxios_add_vaxis("sza", PARASOL_NREFL, PARASOL_SZA) 189 WRITE(lunout,*) 'wxios_add_vaxis pressure2 ',7 190 CALL wxios_add_vaxis("pressure2", 7, ISCCP_PC) 191 WRITE(lunout,*) 'wxios_add_vaxis column ',Ncolumns 192 CALL wxios_add_vaxis("column", Ncolumns, column_ax) 170 193 #endif 171 194 … … 176 199 177 200 IF (cosp_outfilekeys(iff)) THEN 178 idayref = day_ref 179 CALL ymds2ju(annee_ref, 1, idayref, 0., zjulian) 180 CALL histbeg_phy(cosp_outfilenames(iff),itau_phy,zjulian,& 201 CALL histbeg_phy_all(cosp_outfilenames(iff),itau_phy,zjulian,& 181 202 dtime,nhoricosp(iff),cosp_nidfiles(iff)) 182 203 print*,'histbeg_phy nhoricosp(iff),cosp_nidfiles(iff)', & 204 nhoricosp(iff),cosp_nidfiles(iff) 205 206 #ifdef CPP_XIOS 207 IF (.not. ok_all_xml) then 208 WRITE(lunout,*) 'wxios_add_file ',cosp_outfilenames(iff) 209 CALL wxios_add_file(cosp_outfilenames(iff),chfreq(iff),10) 210 ENDIF 211 #endif 212 213 #ifndef CPP_IOIPSL_NO_OUTPUT 183 214 ! Definition de l'axe vertical 184 215 if (use_vgrid) then … … 197 228 198 229 CALL histvert(cosp_nidfiles(iff),"column","column","count",Ncolumns,column_ax(1:Ncolumns),nvertcol(iff)) 199 200 #ifdef CPP_XIOS201 ! ug déclaration des axes verticaux de chaque fichier:202 if (use_vgrid) then203 CALL wxios_add_vaxis("height", cosp_outfilenames(iff), vgrid%Nlvgrid, vgrid%z)204 else205 CALL wxios_add_vaxis("presnivs", cosp_outfilenames(iff), vgrid%Nlvgrid, presnivs)206 endif207 CALL wxios_add_vaxis("height_mlev", cosp_outfilenames(iff), Nlevlmdz, vgrid%mz)208 CALL wxios_add_vaxis("sza", cosp_outfilenames(iff), PARASOL_NREFL, PARASOL_SZA)209 CALL wxios_add_vaxis("pressure2", cosp_outfilenames(iff), 7, ISCCP_PC)210 CALL wxios_add_vaxis("column", cosp_outfilenames(iff), Ncolumns, column_ax)211 230 #endif 212 231 -
LMDZ5/trunk/libf/cosp/cosp_output_write_mod.F90
r2080 r2137 17 17 CONTAINS 18 18 19 SUBROUTINE cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, cfg, gbx, vgrid, sglidar, stlidar, isccp) 19 SUBROUTINE cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, & 20 cfg, gbx, vgrid, sglidar, stlidar, isccp) 20 21 21 22 USE ioipsl … … 23 24 24 25 #ifdef CPP_XIOS 25 ! ug Pour les sorties XIOS26 USE wxios26 USE wxios, only: wxios_closedef 27 USE xios, only: xios_update_calendar 27 28 #endif 28 29 … … 38 39 39 40 !!! Variables locales 40 integer :: icl , iinitend=141 integer :: icl 41 42 logical :: ok_sync 42 43 integer :: itau_wcosp … … 44 45 45 46 include "temps.h" 47 include "iniprint.h" 46 48 47 49 Nlevout = vgrid%Nlvgrid 48 50 Ncolout = Ncolumns 49 51 50 IF (MOD(itap,NINT(freq_COSP/dtime)).EQ.0) THEN51 52 52 ! A refaire 53 53 itau_wcosp = itau_phy + itap + start_time * day_step / iphysiq 54 if (prt_level >= 10) then 55 WRITE(lunout,*)'itau_wcosp, itap, start_time, day_step, iphysiq =', & 56 itau_wcosp, itap, start_time, day_step, iphysiq 57 endif 54 58 55 59 ! On le donne a cosp_output_write_mod pour que les histwrite y aient acces: 56 60 CALL set_itau_iocosp(itau_wcosp) 61 if (prt_level >= 10) then 62 WRITE(lunout,*)'itau_iocosp =',itau_iocosp 63 endif 57 64 58 65 ok_sync = .TRUE. 59 66 60 IF(.NOT.cosp_varsdefined) THEN 61 iinitend = 2 62 ELSE 63 iinitend = 1 64 ENDIF 65 66 ! ug la boucle qui suit ne sert qu'une fois, pour l'initialisation, sinon il n'y a toujours qu'un seul passage: 67 DO iinit=1, iinitend 68 #ifdef CPP_XIOS 67 !DO iinit=1, iinitend 68 ! AI sept 2014 cette boucle supprimee 69 ! On n'ecrit pas quand itap=1 (cosp) 70 71 if (prt_level >= 10) then 72 WRITE(lunout,*)'DO iinit=1, iinitend ',iinitend 73 endif 74 75 #ifdef CPP_XIOS 76 !$OMP MASTER 69 77 IF (cosp_varsdefined) THEN 70 CALL wxios_update_calendar(itau_iocosp) 71 END IF 78 if (prt_level >= 10) then 79 WRITE(lunout,*)'Apell xios_update_calendar cosp_varsdefined iinitend ', & 80 cosp_varsdefined,iinitend 81 endif 82 CALL xios_update_calendar(itau_wcosp) 83 ENDIF 84 !$OMP END MASTER 85 !$OMP BARRIER 72 86 #endif 73 87 74 88 if (cfg%Llidar_sim) then 75 ! print*,'cfg%Llidar_sim dans output_write',cfg%Llidar_sim76 ! print*,'Nlevout Npoints dans output_write, R_UNDEF =',Nlevout,Npoints,R_UNDEF77 89 ! Pb des valeurs indefinies, on les met a 0 78 90 ! A refaire proprement … … 116 128 enddo 117 129 130 print*,'Appel histwrite2d_cosp' 118 131 CALL histwrite2d_cosp(o_cllcalipso,stlidar%cldlayer(:,1)) 119 132 CALL histwrite2d_cosp(o_clhcalipso,stlidar%cldlayer(:,3)) … … 208 221 IF(.NOT.cosp_varsdefined) THEN 209 222 !$OMP MASTER 223 #ifndef CPP_IOIPSL_NO_OUTPUT 210 224 DO iff=1,3 211 225 IF (cosp_outfilekeys(iff)) THEN … … 213 227 ENDIF ! cosp_outfilekeys 214 228 ENDDO ! iff 215 #ifdef CPP_XIOS 229 #endif 230 ! Fermeture dans phys_output_write 231 !#ifdef CPP_XIOS 216 232 !On finalise l'initialisation: 217 CALL wxios_closedef() 218 #endif 233 !CALL wxios_closedef() 234 !#endif 235 219 236 !$OMP END MASTER 220 237 !$OMP BARRIER 221 238 cosp_varsdefined = .TRUE. 222 239 END IF 223 END DO !! iinit 224 225 ! IF(cosp_varsdefined) THEN 240 241 IF(cosp_varsdefined) THEN 226 242 ! On synchronise les fichiers pour IOIPSL 243 #ifndef CPP_IOIPSL_NO_OUTPUT 227 244 !$OMP MASTER 228 DO iff=1,3245 DO iff=1,3 229 246 IF (ok_sync .AND. cosp_outfilekeys(iff)) THEN 230 247 CALL histsync(cosp_nidfiles(iff)) 231 248 ENDIF 232 END DO249 END DO 233 250 !$OMP END MASTER 234 235 ENDIF ! if freq_COSP251 #endif 252 ENDIF !cosp_varsdefined 236 253 237 254 END SUBROUTINE cosp_output_write … … 258 275 INCLUDE "dimensions.h" 259 276 INCLUDE "temps.h" 277 INCLUDE "clesphys.h" 278 include "iniprint.h" 260 279 261 280 INTEGER :: iff … … 286 305 287 306 #ifdef CPP_XIOS 307 IF (.not. ok_all_xml) then 308 IF ( var%cles(iff) ) THEN 309 if (prt_level >= 10) then 310 WRITE(lunout,*)'Appel wxios_add_field_to_file var%name =',var%name 311 endif 288 312 CALL wxios_add_field_to_file(var%name, 2, cosp_nidfiles(iff), cosp_outfilenames(iff), & 289 var%description, var%unit, 1, typeecrit) 290 #endif 313 var%description, var%unit, 1, typeecrit) 314 ENDIF 315 ENDIF 316 #endif 317 318 #ifndef CPP_IOIPSL_NO_OUTPUT 291 319 IF ( var%cles(iff) ) THEN 292 320 CALL histdef (cosp_nidfiles(iff), var%name, var%description, var%unit, & … … 294 322 typeecrit, zstophym,zoutm_cosp(iff)) 295 323 ENDIF 324 #endif 296 325 297 326 END SUBROUTINE histdef2d_cosp … … 312 341 INCLUDE "dimensions.h" 313 342 INCLUDE "temps.h" 343 INCLUDE "clesphys.h" 344 include "iniprint.h" 314 345 315 346 INTEGER :: iff, klevs … … 322 353 CHARACTER(LEN=20) :: nom 323 354 character(len=2) :: str2 355 CHARACTER(len=20) :: nam_axvert 324 356 325 357 ! Axe vertical 326 358 IF (nvertsave.eq.nvertp(iff)) THEN 327 359 klevs=PARASOL_NREFL 360 nam_axvert="sza" 328 361 ELSE IF (nvertsave.eq.nvertisccp(iff)) THEN 329 362 klevs=7 363 nam_axvert="pressure2" 330 364 ELSE IF (nvertsave.eq.nvertcol(iff)) THEN 331 365 klevs=Ncolout 366 nam_axvert="column" 332 367 ELSE 333 klevs=Nlevout 368 klevs=Nlevout 369 nam_axvert="presnivs" 334 370 ENDIF 335 336 371 337 372 ! ug RUSTINE POUR LES Champs 4D 338 373 IF (PRESENT(ncols)) THEN … … 365 400 366 401 #ifdef CPP_XIOS 367 CALL wxios_add_field_to_file(nom, 3, cosp_nidfiles(iff), cosp_outfilenames(iff), & 368 var%description, var%unit, 1, typeecrit) 369 #endif 402 IF (.not. ok_all_xml) then 403 IF ( var%cles(iff) ) THEN 404 if (prt_level >= 10) then 405 WRITE(lunout,*)'Appel wxios_add_field_to_file 3d nom variable nam_axvert = ',nom, nam_axvert 406 endif 407 CALL wxios_add_field_to_file(nom, 3, cosp_nidfiles(iff), cosp_outfilenames(iff), & 408 var%description, var%unit, 1, typeecrit, nam_axvert) 409 ENDIF 410 ENDIF 411 #endif 412 413 #ifndef CPP_IOIPSL_NO_OUTPUT 370 414 IF ( var%cles(iff) ) THEN 371 415 CALL histdef (cosp_nidfiles(iff), nom, var%description, var%unit, & … … 374 418 zstophym, zoutm_cosp(iff)) 375 419 ENDIF 420 #endif 421 376 422 END SUBROUTINE histdef3d_cosp 377 423 … … 383 429 384 430 #ifdef CPP_XIOS 385 USE wxios431 USE xios, only: xios_send_field 386 432 #endif 387 433 … … 389 435 INCLUDE 'dimensions.h' 390 436 INCLUDE 'iniprint.h' 437 INCLUDE 'clesphys.h' 391 438 392 439 TYPE(ctrl_outcosp), INTENT(IN) :: var … … 400 447 CHARACTER(LEN=20) :: nomi, nom 401 448 character(len=2) :: str2 449 LOGICAL, SAVE :: firstx 450 !$OMP THREADPRIVATE(firstx) 402 451 403 452 IF (prt_level >= 9) WRITE(lunout,*)'Begin histrwrite2d ',var%name … … 424 473 425 474 ! La boucle sur les fichiers: 475 firstx=.true. 426 476 DO iff=1, 3 427 477 IF (var%cles(iff) .AND. cosp_outfilekeys(iff)) THEN 428 478 ALLOCATE(index2d(iim*jj_nb)) 479 #ifndef CPP_IOIPSL_NO_OUTPUT 429 480 CALL histwrite(cosp_nidfiles(iff),var%name,itau_iocosp,Field2d,iim*jj_nb,index2d) 430 #ifdef CPP_XIOS 431 IF (iff == 1) THEN 432 CALL wxios_write_2D(var%name, Field2d) 433 ENDIF 434 #endif 435 481 #endif 436 482 deallocate(index2d) 437 ENDIF !levfiles 438 ENDDO 483 #ifdef CPP_XIOS 484 IF (.not. ok_all_xml) then 485 if (firstx) then 486 if (prt_level >= 10) then 487 WRITE(lunout,*)'xios_send_field variable ',var%name 488 endif 489 CALL xios_send_field(var%name, Field2d) 490 firstx=.false. 491 endif 492 ENDIF 493 #endif 494 ENDIF 495 ENDDO 496 497 #ifdef CPP_XIOS 498 IF (ok_all_xml) THEN 499 if (prt_level >= 10) then 500 WRITE(lunout,*)'xios_send_field variable ',var%name 501 endif 502 CALL xios_send_field(var%name, Field2d) 503 ENDIF 504 #endif 505 439 506 !$OMP END MASTER 440 507 ENDIF ! vars_defined 441 IF (prt_level >= 9) WRITE(lunout,*)'End histrwrite2d_cosp ', nom508 IF (prt_level >= 9) WRITE(lunout,*)'End histrwrite2d_cosp ',var%name 442 509 END SUBROUTINE histwrite2d_cosp 443 510 … … 451 518 452 519 #ifdef CPP_XIOS 453 USE WXIOS520 USE xios, only: xios_send_field 454 521 #endif 455 522 … … 458 525 INCLUDE 'dimensions.h' 459 526 INCLUDE 'iniprint.h' 527 INCLUDE 'clesphys.h' 460 528 461 529 TYPE(ctrl_outcosp), INTENT(IN) :: var … … 472 540 CHARACTER(LEN=20) :: nomi, nom 473 541 character(len=2) :: str2 542 LOGICAL, SAVE :: firstx 543 !$OMP THREADPRIVATE(firstx) 474 544 475 545 IF (prt_level >= 9) write(lunout,*)'Begin histrwrite3d ',var%name … … 505 575 CALL grid1Dto2D_mpi(buffer_omp,field3d) 506 576 507 508 577 ! BOUCLE SUR LES FICHIERS 578 firstx=.true. 509 579 DO iff=1, 3 510 580 IF (var%cles(iff) .AND. cosp_outfilekeys(iff)) THEN 511 581 ALLOCATE(index3d(iim*jj_nb*nlev)) 582 #ifndef CPP_IOIPSL_NO_OUTPUT 512 583 CALL histwrite(cosp_nidfiles(iff),nom,itau_iocosp,Field3d,iim*jj_nb*nlev,index3d) 513 514 #ifdef CPP_XIOS 515 IF (iff == 1) THEN 516 CALL wxios_write_3D(nom, Field3d(:,:,1:klev)) 584 #endif 585 586 #ifdef CPP_XIOS 587 IF (.not. ok_all_xml) then 588 IF (firstx) THEN 589 CALL xios_send_field(nom, Field3d(:,:,1:nlev)) 590 IF (prt_level >= 9) WRITE(lunout,*)'xios_send_field ',var%name 591 firstx=.FALSE. 517 592 ENDIF 593 ENDIF 518 594 #endif 519 595 deallocate(index3d) 520 596 ENDIF 521 597 ENDDO 598 #ifdef CPP_XIOS 599 IF (ok_all_xml) THEN 600 CALL xios_send_field(nom, Field3d(:,:,1:nlev)) 601 IF (prt_level >= 9) WRITE(lunout,*)'xios_send_field ',var%name 602 ENDIF 603 #endif 604 522 605 !$OMP END MASTER 523 606 ENDIF ! vars_defined -
LMDZ5/trunk/libf/cosp/phys_cosp.F90
r2080 r2137 6 6 subroutine phys_cosp( itap,dtime,freq_cosp, & 7 7 ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, & 8 ecrit_mth,ecrit_day,ecrit_hf, &8 ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, & 9 9 Nptslmdz,Nlevlmdz,lon,lat, presnivs,overlaplmdz,sunlit, & 10 10 ref_liq,ref_ice,fracTerLic,u_wind,v_wind,phis,phi,ph,p,skt,t, & … … 119 119 integer :: ii 120 120 real :: ecrit_day,ecrit_hf,ecrit_mth 121 logical :: ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP 121 logical :: ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, ok_all_xml 122 122 123 123 logical, save :: debut_cosp=.true. … … 298 298 print *, ' Open outpts files and define axis' 299 299 call cosp_output_open(Nlevlmdz, Ncolumns, presnivs, dtime, freq_cosp, & 300 ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, &300 ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, ok_all_xml, & 301 301 ecrit_mth, ecrit_day, ecrit_hf, use_vgrid, vgrid) 302 302 !$OMP END MASTER … … 313 313 !!!!!!!!!!!!!!!!!! Ecreture des sorties Cosp !!!!!!!!!!!!!!r!!!!!!:!!!!! 314 314 print *, 'Calling write output' 315 call cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, cfg, gbx, vgrid, sglidar, stlidar, isccp) 315 call cosp_output_write(Nlevlmdz, Npoints, Ncolumns, itap, dtime, freq_COSP, & 316 cfg, gbx, vgrid, sglidar, stlidar, isccp) 316 317 317 318 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -
LMDZ5/trunk/libf/phylmd/iophy.F90
r2114 r2137 1117 1117 trim(var%name) 1118 1118 endif 1119 CALL xios_send_field(var%name, Field3d )1119 CALL xios_send_field(var%name, Field3d(:,:,1:nlevx)) 1120 1120 #else 1121 1121 CALL abort_gcm ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1) -
LMDZ5/trunk/libf/phylmd/physiq.F90
r2136 r2137 3512 3512 ! adeclarer 3513 3513 #ifdef CPP_COSP 3514 IF ( MOD(itap,NINT(freq_cosp/dtime)).EQ.0) THEN3514 IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/dtime)).EQ.0) THEN 3515 3515 3516 3516 print*,'freq_cosp',freq_cosp … … 3520 3520 call phys_cosp(itap,dtime,freq_cosp, & 3521 3521 ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, & 3522 ecrit_mth,ecrit_day,ecrit_hf, &3522 ecrit_mth,ecrit_day,ecrit_hf, ok_all_xml, & 3523 3523 klon,klev,rlon,rlat,presnivs,overlap, & 3524 3524 fract,ref_liq,ref_ice, &
Note: See TracChangeset
for help on using the changeset viewer.