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/DIA – NEMO

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

ctlopn cleanup, see ticket:515 and ticket:237

Location:
trunk/NEMO/OPA_SRC/DIA
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DIA/diadimg.F90

    r1152 r1581  
    4242    !! 
    4343    !! History : 
    44     !!   03-12 (J.M. Molines ) : Original. Replace ctlopn, writn2d 
     44    !!   03-12 (J.M. Molines ) : Original. Replace ctl_opn, writn2d 
    4545    !!--------------------------------------------------------------------------- 
    4646    !! * Arguments 
     
    104104    IF ( ln_dimgnnn  ) THEN 
    105105       WRITE(clname,'(a,a,i3.3)') TRIM(cd_name),'.',narea 
    106        CALL ctlopn(inum, clname,'UNKNOWN','UNFORMATTED','DIRECT',irecl4,numout,lwp,1) 
     106       CALL ctl_opn( inum, clname, 'REPLACE', 'UNFORMATTED', 'DIRECT', irecl4, numout, lwp ) 
    107107       WRITE(inum,REC=1 ) clver, cd_text, irecl4, & 
    108108            &     jpi,jpj, klev, 1 , 1 ,            & 
     
    131131       !! Standard dimgproc (1 file per variable, all procs. write to this file ) 
    132132       !! * Open file 
    133        CALL ctlopn(inum, cd_name,'UNKNOWN','UNFORMATTED','DIRECT',irecl4,numout,lwp,1) 
     133       CALL ctl_opn( inum, cd_name, 'REPLACE', 'UNFORMATTED', 'DIRECT', irecl4, numout, lwp ) 
    134134 
    135135       !! * Write header on record #1 
  • trunk/NEMO/OPA_SRC/DIA/diafwb.F90

    r1528 r1581  
    357357      ! -------------------------- 
    358358 
    359       IF ( kt == nitend .AND. cp_cfg == "orca" ) THEN 
    360  
    361          CALL ctlopn( inum, 'STRAIT.dat', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL',   & 
    362             &         1, numout, lwp, 1 ) 
     359      IF ( kt == nitend .AND. cp_cfg == "orca" .AND. lwp ) THEN 
     360 
     361         CALL ctl_opn( inum, 'STRAIT.dat', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    363362         WRITE(inum,*) 
    364363         WRITE(inum,*)    'Net freshwater budget ' 
  • trunk/NEMO/OPA_SRC/DIA/diawri.F90

    r1577 r1581  
    150150      REAL(wp), DIMENSION(jpi,jpj) :: & 
    151151         zw2d                            ! temporary workspace 
    152       CHARACTER (len=80) :: clname 
    153152      !!---------------------------------------------------------------------- 
    154153      ! 
     
    209208 
    210209         ! WRITE root name in date.file for use by postpro 
    211          IF( lwp) THEN 
     210         IF(lwp) THEN 
    212211            CALL dia_nam( clhstnam, nwrite,' ' ) 
    213             clname = 'date.file' 
    214             CALL ctlopn( inum, clname,  'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', 1, numout, lwp, 1 ) 
     212            CALL ctl_opn( inum, 'date.file', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp, narea ) 
    215213            WRITE(inum,*) clhstnam 
    216214            CLOSE(inum) 
Note: See TracChangeset for help on using the changeset viewer.