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 2028 – NEMO

Changeset 2028


Ignore:
Timestamp:
2010-07-29T13:43:21+02:00 (14 years ago)
Author:
rblod
Message:

Fix bug in obc, see ticket #689

Location:
trunk/NEMO/OPA_SRC/OBC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/OBC/obcini.F90

    r1818 r2028  
    6262      NAMELIST/namobc/ rn_dpein, rn_dpwin, rn_dpnin, rn_dpsin,       & 
    6363         &             rn_dpeob, rn_dpwob, rn_dpnob, rn_dpsob,       & 
    64          &             rn_volemp, nn_obcdta, cn_obcdta, rn_volemp,   & 
     64         &             rn_volemp, nn_obcdta, cn_obcdta,    & 
    6565         &             ln_obc_clim, ln_vol_cst, ln_obc_fla 
    6666      !!---------------------------------------------------------------------- 
     
    7070 
    7171      ! convert DOCTOR namelist name into the OLD names 
     72      nbobc    = 0 
    7273      nobc_dta = nn_obcdta 
    7374      cffile   = cn_obcdta 
     
    149150      ENDIF 
    150151 
    151       IF( nbobc /= 0 .AND. jperio /= 0 )   & 
     152      IF( nbobc >= 2 .AND. jperio /= 0 )   & 
    152153         &   CALL ctl_stop( ' Cyclic or symmetric, and open boundary condition are not compatible' ) 
    153154 
     
    441442            END DO 
    442443         END IF 
    443  
    444444         IF( lp_obc_north ) THEN ! ... North open boundary lateral surface 
    445445            DO jj = njn0, njn1 
  • trunk/NEMO/OPA_SRC/OBC/obctra.F90

    r1152 r2028  
    490490                  zin = sign( 1., -1.* z05cx ) 
    491491                  zin = 0.5*( zin + abs(zin) ) 
    492                   ztau = (1.-zin ) + zin * rtaus 
     492                  ztau = (1.-zin ) * rtausin + zin * rtaus 
    493493                  z05cx = z05cx * zin 
     494 
    494495         !... update (ta,sa) with radiative or climatological (t, s) 
    495496                  ta(ji,jj,jk) = ta(ji,jj,jk) * (1.-tsmsk(ji,jk)) +             & 
Note: See TracChangeset for help on using the changeset viewer.