Changeset 1955
- Timestamp:
- Jun 27, 2018, 12:41:02 PM (6 years ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r1954 r1955 2592 2592 == 21/06/2018 == EM 2593 2593 - Make a "doc" subdirectory to store the documentation source files with the code 2594 2595 == 27/06/2018 == EM 2596 - Fix problematic writediagfi call in physiq (should not write a "Time" variable 2597 as "Time" is already defined as a dimension) and added some extra tests in 2598 writediagfi to better detect similar issues. -
trunk/LMDZ.MARS/libf/phymars/physiq_mod.F
r1944 r1955 2329 2329 & fluxtop_sw_tot) 2330 2330 call WRITEDIAGFI(ngrid,"temp","temperature","K",3,zt) 2331 call WRITEDIAGFI(ngrid," Time","Time","sols",0,zday)2331 call WRITEDIAGFI(ngrid,"Sols","Time","sols",0,zday) 2332 2332 2333 2333 call WRITEDIAGFI(ngrid,"u","Zonal wind","m.s-1",3,zu) -
trunk/LMDZ.MARS/libf/phymars/writediagfi.F
r1543 r1955 281 281 ntime=ntime+1 ! increment # of stored time steps 282 282 ! compute corresponding date (in days and fractions thereof) 283 date= float (zitau +1)/float (day_step)283 date=(zitau +1.)/day_step 284 284 ! Get NetCDF ID of 'Time' variable 285 285 ierr= NF_INQ_VARID(nid,"Time",varid) … … 293 293 write(*,*) "***** PUT_VAR matter in writediagfi_nc" 294 294 write(*,*) "***** with time" 295 write(*,*) 'ierr=', ierr 295 write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr) 296 296 c call abort 297 297 endif … … 355 355 356 356 write (*,*) "==========================" 357 write (*,*) "DIAGFI: creating variable ", nom357 write (*,*) "DIAGFI: creating variable ",trim(nom) 358 358 call def_var(nid,nom,titre,unite,4,id,varid,ierr) 359 359 360 else 361 if (ntime==0) then 362 write(*,*) "DIAGFI Error: failed creating variable ", 363 & trim(nom) 364 write(*,*) "it seems it already exists!" 365 stop 366 endif 360 367 endif 361 368 … … 389 396 if (ierr.ne.NF_NOERR) then 390 397 write(*,*) "***** PUT_VAR problem in writediagfi" 391 write(*,*) "***** with dx3: ", nom398 write(*,*) "***** with dx3: ",trim(nom) 392 399 write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr) 393 400 stop … … 449 456 450 457 write (*,*) "==========================" 451 write (*,*) "DIAGFI: creating variable ", nom458 write (*,*) "DIAGFI: creating variable ",trim(nom) 452 459 453 460 call def_var(nid,nom,titre,unite,3,id,varid,ierr) 454 461 462 else 463 if (ntime==0) then 464 write(*,*) "DIAGFI Error: failed creating variable ", 465 & trim(nom) 466 write(*,*) "it seems it already exists!" 467 stop 468 endif 455 469 endif 456 470 … … 479 493 if (ierr.ne.NF_NOERR) then 480 494 write(*,*) "***** PUT_VAR matter in writediagfi" 481 write(*,*) "***** with dx2: ", nom495 write(*,*) "***** with dx2: ",trim(nom) 482 496 write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr) 483 497 stop … … 510 524 511 525 write (*,*) "==========================" 512 write (*,*) "DIAGFI: creating variable ", nom526 write (*,*) "DIAGFI: creating variable ",trim(nom) 513 527 514 528 call def_var(nid,nom,titre,unite,2,id,varid,ierr) 515 529 530 else 531 if (ntime==0) then 532 write(*,*) "DIAGFI Error: failed creating variable ", 533 & trim(nom) 534 write(*,*) "it seems it already exists!" 535 stop 536 endif 516 537 endif 517 538 … … 529 550 if (ierr.ne.NF_NOERR) then 530 551 write(*,*) "***** PUT_VAR problem in writediagfi" 531 write(*,*) "***** with dx1: ", nom552 write(*,*) "***** with dx1: ",trim(nom) 532 553 write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr) 533 554 stop … … 551 572 552 573 write (*,*) "==========================" 553 write (*,*) "DIAGFI: creating variable ", nom574 write (*,*) "DIAGFI: creating variable ",trim(nom) 554 575 555 576 call def_var(nid,nom,titre,unite,1,id,varid,ierr) 556 577 578 else 579 if (ntime==0) then 580 write(*,*) "DIAGFI Error: failed creating variable ", 581 & trim(nom) 582 write(*,*) "it seems it already exists!" 583 stop 584 endif 557 585 endif 558 586 … … 567 595 if (ierr.ne.NF_NOERR) then 568 596 write(*,*) "***** PUT_VAR matter in writediagfi" 569 write(*,*) "***** with dx0: ", nom597 write(*,*) "***** with dx0: ",trim(nom) 570 598 write(*,*) 'ierr=', ierr,": ",NF_STRERROR(ierr) 571 599 stop
Note: See TracChangeset
for help on using the changeset viewer.