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 11790 for NEMO/branches/2019 – NEMO

Changeset 11790 for NEMO/branches/2019


Ignore:
Timestamp:
2019-10-24T17:40:27+02:00 (4 years ago)
Author:
andmirek
Message:

Ticket #2320 correction for SAS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/dev_r11756_text_output/src/SAS/nemogcm.F90

    r11782 r11790  
    234234                     CALL ctl_opn( numnam_ref,        'namelist_sas_ref',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    235235                     CALL ctl_opn( numnam_cfg,        'namelist_sas_cfg',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    236          IF( lwm .AND. nprint > 2 )   CALL ctl_opn(     numond, 'output.namelist_sas.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    237236      ELSE 
    238237         IF( lwm )   CALL ctl_opn(     numout,            'ocean.output', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
     
    240239                     CALL ctl_opn( numnam_ref,            'namelist_ref',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    241240                     CALL ctl_opn( numnam_cfg,            'namelist_cfg',     'OLD', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    242          IF( lwm .AND. nprint > 2  )   CALL ctl_opn(     numond,     'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
    243241      ENDIF 
    244242      ! open /dev/null file to be able to supress output write easily 
     
    257255      ! 
    258256      lwp = (narea == 1) .OR. ln_ctl    ! control of all listing output print 
     257      ! 
     258      nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
     259      ! Open output.namelist only if needed 
     260      IF( lk_oasis ) THEN 
     261         IF( lwm .AND. nprint > 2 )   CALL ctl_opn(     numond, 'output.namelist_sas.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
     262      ELSE 
     263         IF( lwm .AND. nprint > 2 )   CALL ctl_opn(     numond,     'output.namelist.dyn', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, -1, .FALSE. ) 
     264      ENDIF 
    259265      ! 
    260266      IF(lwp) THEN                      ! open listing units 
     
    323329         CALL usr_def_nam( cn_cfg, nn_cfg, jpiglo, jpjglo, jpkglo, jperio ) 
    324330      ENDIF 
    325       ! 
    326       nprint    = nn_print          ! convert DOCTOR namelist names into OLD names 
    327331      ! 
    328332      IF(lwm .AND. nprint > 2)   WRITE( numond, namcfg ) 
Note: See TracChangeset for help on using the changeset viewer.