- Timestamp:
- 2019-08-06T17:59:22+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11265_ASINTER-01_Guillaume_ABL1D/src/OCE/DIA/diawri.F90
r11363 r11413 437 437 !! define all the NETCDF files and fields 438 438 !! At each time step call histdef to compute the mean if ncessary 439 !! Each n write time step, output the instantaneous or mean fields439 !! Each nn_write time step, output the instantaneous or mean fields 440 440 !!---------------------------------------------------------------------- 441 441 INTEGER, INTENT( in ) :: kt ! ocean time-step index … … 455 455 REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: zw3d_abl ! ABL 3D workspace 456 456 !!---------------------------------------------------------------------- 457 !458 IF( ln_timing ) CALL timing_start('dia_wri')459 457 ! 460 458 IF( ninist == 1 ) THEN !== Output the initial state and forcings ==! … … 464 462 465 463 ! 464 IF( nn_write == -1 ) RETURN ! we will never do any output 465 ! 466 IF( ln_timing ) CALL timing_start('dia_wri') 467 ! 466 468 ! 0. Initialisation 467 469 ! ----------------- … … 473 475 clop = "x" ! no use of the mask value (require less cpu time and otherwise the model crashes) 474 476 #if defined key_diainstant 475 zsto = n write * rdt477 zsto = nn_write * rdt 476 478 clop = "inst("//TRIM(clop)//")" 477 479 #else … … 479 481 clop = "ave("//TRIM(clop)//")" 480 482 #endif 481 zout = n write * rdt483 zout = nn_write * rdt 482 484 zmax = ( nitend - nit000 + 1 ) * rdt 483 485 … … 511 513 ! WRITE root name in date.file for use by postpro 512 514 IF(lwp) THEN 513 CALL dia_nam( clhstnam, n write,' ' )515 CALL dia_nam( clhstnam, nn_write,' ' ) 514 516 CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 515 517 WRITE(inum,*) clhstnam … … 519 521 ! Define the T grid FILE ( nid_T ) 520 522 521 CALL dia_nam( clhstnam, n write, 'grid_T' )523 CALL dia_nam( clhstnam, nn_write, 'grid_T' ) 522 524 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 523 525 CALL histbeg( clhstnam, jpi, glamt, jpj, gphit, & ! Horizontal grid: glamt and gphit … … 555 557 ! Define the U grid FILE ( nid_U ) 556 558 557 CALL dia_nam( clhstnam, n write, 'grid_U' )559 CALL dia_nam( clhstnam, nn_write, 'grid_U' ) 558 560 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 559 561 CALL histbeg( clhstnam, jpi, glamu, jpj, gphiu, & ! Horizontal grid: glamu and gphiu … … 568 570 ! Define the V grid FILE ( nid_V ) 569 571 570 CALL dia_nam( clhstnam, n write, 'grid_V' ) ! filename572 CALL dia_nam( clhstnam, nn_write, 'grid_V' ) ! filename 571 573 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 572 574 CALL histbeg( clhstnam, jpi, glamv, jpj, gphiv, & ! Horizontal grid: glamv and gphiv … … 581 583 ! Define the W grid FILE ( nid_W ) 582 584 583 CALL dia_nam( clhstnam, n write, 'grid_W' ) ! filename585 CALL dia_nam( clhstnam, nn_write, 'grid_W' ) ! filename 584 586 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 585 587 CALL histbeg( clhstnam, jpi, glamt, jpj, gphit, & ! Horizontal grid: glamt and gphit … … 591 593 IF( ln_abl ) THEN 592 594 ! Define the ABL grid FILE ( nid_A ) 593 CALL dia_nam( clhstnam, n write, 'grid_ABL' )595 CALL dia_nam( clhstnam, nn_write, 'grid_ABL' ) 594 596 IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam ! filename 595 597 CALL histbeg( clhstnam, jpi, glamt, jpj, gphit, & ! Horizontal grid: glamt and gphit … … 796 798 ! donne le nombre d'elements, et ndex la liste des indices a sortir 797 799 798 IF( lwp .AND. MOD( itmod, n write ) == 0 ) THEN800 IF( lwp .AND. MOD( itmod, nn_write ) == 0 ) THEN 799 801 WRITE(numout,*) 'dia_wri : write model outputs in NetCDF files at ', kt, 'time-step' 800 802 WRITE(numout,*) '~~~~~~ '
Note: See TracChangeset
for help on using the changeset viewer.