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/mppini_2.h90 – 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/mppini_2.h90

    r1556 r1581  
    4040      !!---------------------------------------------------------------------- 
    4141      !! * Modules used 
     42      USE in_out_manager  ! I/O Manager 
    4243      USE iom 
    4344    
    4445      !! Local variables 
    45       CHARACTER (len=32) :: clname 
    4646      INTEGER :: ji, jj, jn, jproc, jarea     ! dummy loop indices 
    4747      INTEGER ::  inum                        ! temporary logical unit 
     
    463463      ! Save processor layout in ascii file 
    464464      IF (lwp) THEN 
    465          clname = 'layout.dat' 
    466          CALL ctlopn( inum, clname, 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL',   & 
    467             &         1, numout, .FALSE., 1 ) 
     465         CALL ctl_opn( inum, 'layout.dat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE., narea ) 
    468466         WRITE(inum,'(6i8)') jpnij,jpi,jpj,jpk,jpiglo,jpjglo 
    469467         WRITE(inum,'(a)') 'NAREA nlci nlcj nldi nldj nlei nlej nimpp njmpp' 
Note: See TracChangeset for help on using the changeset viewer.