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 2586 for trunk – NEMO

Changeset 2586 for trunk


Ignore:
Timestamp:
2011-02-10T17:04:05+01:00 (13 years ago)
Author:
smasson
Message:

should not open existing file in writing mode, see ticket #797

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r2528 r2586  
    302302         ELSE                     ! we are in write mode so we  
    303303            clname = cltmpn       ! get back the file name without the cpu number 
     304         ENDIF 
     305      ELSE 
     306         IF( llwrt .AND. .NOT. ln_clobber ) THEN   ! we stop as we want to write in a new file  
     307            CALL ctl_stop( TRIM(clinfo), 'We want to write in a new file but '//TRIM(clname)//' already exists...' ) 
     308            istop = nstop + 1                      ! make sure that istop /= nstop so we don't open the file 
    304309         ENDIF 
    305310      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.