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 11822 for NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/SAS/diawri.F90 – NEMO

Ignore:
Timestamp:
2019-10-29T11:41:36+01:00 (4 years ago)
Author:
acc
Message:

Branch 2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps. Sette tested updates to branch to align with trunk changes between 10721 and 11740. Sette tests are passing but results differ from branch before these changes (except for GYRE_PISCES and VORTEX) and branch results already differed from trunk because of algorithmic fixes. Will need more checks to confirm correctness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps/src/SAS/diawri.F90

    r11027 r11822  
    126126      !!      define all the NETCDF files and fields 
    127127      !!      At each time step call histdef to compute the mean if ncessary 
    128       !!      Each nwrite time step, output the instantaneous or mean fields 
     128      !!      Each nn_write time step, output the instantaneous or mean fields 
    129129      !!---------------------------------------------------------------------- 
    130130      !! 
     
    139139      REAL(wp) ::   zsto, zout, zmax, zjulian                ! local scalars 
    140140      !!---------------------------------------------------------------------- 
    141       !  
    142       IF( ln_timing )   CALL timing_start('dia_wri') 
    143141      ! 
    144142      ! Output the initial state and forcings 
     
    148146      ENDIF 
    149147      ! 
     148      IF( nn_write == -1 )   RETURN   ! we will never do any output 
     149      !  
     150      IF( ln_timing )   CALL timing_start('dia_wri') 
     151      ! 
    150152      ! 0. Initialisation 
    151153      ! ----------------- 
     
    160162      ENDIF 
    161163#if defined key_diainstant 
    162       zsto = nwrite * rdt 
     164      zsto = nn_write * rdt 
    163165      clop = "inst("//TRIM(clop)//")" 
    164166#else 
     
    166168      clop = "ave("//TRIM(clop)//")" 
    167169#endif 
    168       zout = nwrite * rdt 
     170      zout = nn_write * rdt 
    169171      zmax = ( nitend - nit000 + 1 ) * rdt 
    170172 
     
    197199         ! WRITE root name in date.file for use by postpro 
    198200         IF(lwp) THEN 
    199             CALL dia_nam( clhstnam, nwrite,' ' ) 
     201            CALL dia_nam( clhstnam, nn_write,' ' ) 
    200202            CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    201203            WRITE(inum,*) clhstnam 
     
    205207         ! Define the T grid FILE ( nid_T ) 
    206208 
    207          CALL dia_nam( clhstnam, nwrite, 'grid_T' ) 
     209         CALL dia_nam( clhstnam, nn_write, 'grid_T' ) 
    208210         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam    ! filename 
    209211         CALL histbeg( clhstnam, jpi, glamt, jpj, gphit,           &  ! Horizontal grid: glamt and gphit 
     
    217219         ! Define the U grid FILE ( nid_U ) 
    218220 
    219          CALL dia_nam( clhstnam, nwrite, 'grid_U' ) 
     221         CALL dia_nam( clhstnam, nn_write, 'grid_U' ) 
    220222         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam    ! filename 
    221223         CALL histbeg( clhstnam, jpi, glamu, jpj, gphiu,           &  ! Horizontal grid: glamu and gphiu 
     
    229231         ! Define the V grid FILE ( nid_V ) 
    230232 
    231          CALL dia_nam( clhstnam, nwrite, 'grid_V' )                   ! filename 
     233         CALL dia_nam( clhstnam, nn_write, 'grid_V' )                   ! filename 
    232234         IF(lwp) WRITE(numout,*) " Name of NETCDF file ", clhstnam 
    233235         CALL histbeg( clhstnam, jpi, glamv, jpj, gphiv,           &  ! Horizontal grid: glamv and gphiv 
     
    292294      ! donne le nombre d'elements, et ndex la liste des indices a sortir 
    293295 
    294       IF( lwp .AND. MOD( itmod, nwrite ) == 0 ) THEN  
     296      IF( lwp .AND. MOD( itmod, nn_write ) == 0 ) THEN  
    295297         WRITE(numout,*) 'dia_wri : write model outputs in NetCDF files at ', kt, 'time-step' 
    296298         WRITE(numout,*) '~~~~~~ ' 
Note: See TracChangeset for help on using the changeset viewer.