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 1581 for trunk/NEMO/OPA_SRC/stpctl.F90 – NEMO

Ignore:
Timestamp:
2009-08-05T16:53:12+02:00 (15 years ago)
Author:
smasson
Message:

ctlopn cleanup, see ticket:515 and ticket:237

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/stpctl.F90

    r1566 r1581  
    5656      INTEGER, DIMENSION(3) ::   ilocu      !  
    5757      INTEGER, DIMENSION(2) ::   ilocs      !  
    58       CHARACTER(len=80) :: clname 
    5958      !!---------------------------------------------------------------------- 
    6059 
     
    6463         WRITE(numout,*) '~~~~~~~' 
    6564         ! open time.step file 
    66          clname = 'time.step' 
    67          CALL ctlopn( numstp, clname, 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', 1, numout, lwp, 1 ) 
     65         CALL ctl_opn( numstp, 'time.step', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    6866      ENDIF 
    6967 
     
    158156         ENDIF 
    159157         ! 
    160       ELSE                                            !* ssh statistics (and others...) 
    161          IF( kt == nit000 ) THEN      ! open ssh statistics file (put in solver.stat file) 
    162             CALL ctlopn( numsol, 'solver.stat', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', 1, numout, lwp, 1 ) 
     158      ELSE                                   !* ssh statistics (and others...) 
     159         IF( kt == nit000 .AND. lwp ) THEN   ! open ssh statistics file (put in solver.stat file) 
     160            CALL ctl_opn( numsol, 'solver.stat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    163161         ENDIF 
    164162         ! 
Note: See TracChangeset for help on using the changeset viewer.