New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 11413 for NEMO/branches/2019/dev_r11265_ASINTER-01_Guillaume_ABL1D/src/OCE/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2019-08-06T17:59:22+02:00 (5 years ago)
Author:
gsamson
Message:

dev_r11265_ABL : see #2131

  • merge src and cfgs from HPC-13_IRRMANN_BDY_optimization branch @ r11402 with dev_r11265_ABL branch @ r11363
  • change ORCA2 results due to ice rheology "cleaning" (see commit r11377)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11265_ASINTER-01_Guillaume_ABL1D/src/OCE/DIA/diawri.F90

    r11363 r11413  
    437437      !!      define all the NETCDF files and fields 
    438438      !!      At each time step call histdef to compute the mean if ncessary 
    439       !!      Each nwrite time step, output the instantaneous or mean fields 
     439      !!      Each nn_write time step, output the instantaneous or mean fields 
    440440      !!---------------------------------------------------------------------- 
    441441      INTEGER, INTENT( in ) ::   kt   ! ocean time-step index 
     
    455455      REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: zw3d_abl   ! ABL 3D workspace 
    456456      !!---------------------------------------------------------------------- 
    457       !  
    458       IF( ln_timing )   CALL timing_start('dia_wri') 
    459457      ! 
    460458      IF( ninist == 1 ) THEN     !==  Output the initial state and forcings  ==! 
     
    464462      
    465463      ! 
     464      IF( nn_write == -1 )   RETURN   ! we will never do any output 
     465      !  
     466      IF( ln_timing )   CALL timing_start('dia_wri') 
     467      ! 
    466468      ! 0. Initialisation 
    467469      ! ----------------- 
     
    473475      clop = "x"         ! no use of the mask value (require less cpu time and otherwise the model crashes) 
    474476#if defined key_diainstant 
    475       zsto = nwrite * rdt 
     477      zsto = nn_write * rdt 
    476478      clop = "inst("//TRIM(clop)//")" 
    477479#else 
     
    479481      clop = "ave("//TRIM(clop)//")" 
    480482#endif 
    481       zout = nwrite * rdt 
     483      zout = nn_write * rdt 
    482484      zmax = ( nitend - nit000 + 1 ) * rdt 
    483485 
     
    511513         ! WRITE root name in date.file for use by postpro 
    512514         IF(lwp) THEN 
    513             CALL dia_nam( clhstnam, nwrite,' ' ) 
     515            CALL dia_nam( clhstnam, nn_write,' ' ) 
    514516            CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    515517            WRITE(inum,*) clhstnam 
     
    519521         ! Define the T grid FILE ( nid_T ) 
    520522 
    521          CALL dia_nam( clhstnam, nwrite, 'grid_T' ) 
     523         CALL dia_nam( clhstnam, nn_write, 'grid_T' ) 
    522524         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam    ! filename 
    523525         CALL histbeg( clhstnam, jpi, glamt, jpj, gphit,           &  ! Horizontal grid: glamt and gphit 
     
    555557         ! Define the U grid FILE ( nid_U ) 
    556558 
    557          CALL dia_nam( clhstnam, nwrite, 'grid_U' ) 
     559         CALL dia_nam( clhstnam, nn_write, 'grid_U' ) 
    558560         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam    ! filename 
    559561         CALL histbeg( clhstnam, jpi, glamu, jpj, gphiu,           &  ! Horizontal grid: glamu and gphiu 
     
    568570         ! Define the V grid FILE ( nid_V ) 
    569571 
    570          CALL dia_nam( clhstnam, nwrite, 'grid_V' )                   ! filename 
     572         CALL dia_nam( clhstnam, nn_write, 'grid_V' )                   ! filename 
    571573         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 
    572574         CALL histbeg( clhstnam, jpi, glamv, jpj, gphiv,           &  ! Horizontal grid: glamv and gphiv 
     
    581583         ! Define the W grid FILE ( nid_W ) 
    582584 
    583          CALL dia_nam( clhstnam, nwrite, 'grid_W' )                   ! filename 
     585         CALL dia_nam( clhstnam, nn_write, 'grid_W' )                   ! filename 
    584586         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 
    585587         CALL histbeg( clhstnam, jpi, glamt, jpj, gphit,           &  ! Horizontal grid: glamt and gphit 
     
    591593         IF( ln_abl ) THEN  
    592594         ! Define the ABL grid FILE ( nid_A ) 
    593             CALL dia_nam( clhstnam, nwrite, 'grid_ABL' ) 
     595            CALL dia_nam( clhstnam, nn_write, 'grid_ABL' ) 
    594596            IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam    ! filename 
    595597            CALL histbeg( clhstnam, jpi, glamt, jpj, gphit,           &  ! Horizontal grid: glamt and gphit 
     
    796798      ! donne le nombre d'elements, et ndex la liste des indices a sortir 
    797799 
    798       IF( lwp .AND. MOD( itmod, nwrite ) == 0 ) THEN  
     800      IF( lwp .AND. MOD( itmod, nn_write ) == 0 ) THEN  
    799801         WRITE(numout,*) 'dia_wri : write model outputs in NetCDF files at ', kt, 'time-step' 
    800802         WRITE(numout,*) '~~~~~~ ' 
Note: See TracChangeset for help on using the changeset viewer.