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.
nambdy_tides.patch on Ticket #2294 – Attachment – NEMO

Ticket #2294: nambdy_tides.patch

File nambdy_tides.patch, 898 bytes (added by mdunphy, 5 years ago)

Add rewind to reference namelist read in bdytides.F90

  • src/OCE/BDY/bdytides.F90

    diff --git a/src/OCE/BDY/bdytides.F90 b/src/OCE/BDY/bdytides.F90
    index eec3d0f..2cdab9e 100644
    a b CONTAINS 
    9999            ! Namelist nambdy_tide : tidal harmonic forcing at open boundaries 
    100100            filtide(:) = '' 
    101101 
    102             ! Don't REWIND here - may need to read more than one of these namelists.  
     102            REWIND(numnam_ref) 
    103103            READ  ( numnam_ref, nambdy_tide, IOSTAT = ios, ERR = 901) 
    104104901         IF( ios /= 0 )   CALL ctl_nam ( ios , 'nambdy_tide in reference namelist', lwp ) 
     105            ! Don't REWIND numnam_cfg here - may need to read more than one of these namelists. 
    105106            READ  ( numnam_cfg, nambdy_tide, IOSTAT = ios, ERR = 902 ) 
    106107902         IF( ios >  0 )   CALL ctl_nam ( ios , 'nambdy_tide in configuration namelist', lwp ) 
    107108            IF(lwm) WRITE ( numond, nambdy_tide )