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.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/mppini.F90

    r1556 r1581  
    129129      !!---------------------------------------------------------------------- 
    130130      !! * Local variables 
    131       CHARACTER (len=32) ::   clname 
    132131      INTEGER ::   ji, jj, jn               ! dummy loop indices 
    133132      INTEGER ::   & 
     
    335334     ! Save processor layout in layout.dat file  
    336335       IF (lwp) THEN 
    337         clname = 'layout.dat' 
    338         CALL ctlopn( inum, clname, 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL',   & 
    339            &         1, numout, .FALSE., 1 ) 
     336        CALL ctl_opn( inum, 'layout.dat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE., narea ) 
    340337        WRITE(inum,'(a)') '   jpnij     jpi     jpj     jpk  jpiglo  jpjglo' 
    341338        WRITE(inum,'(6i8)') jpnij,jpi,jpj,jpk,jpiglo,jpjglo 
Note: See TracChangeset for help on using the changeset viewer.