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 2818 for branches/2011/UKMO_MERCATOR_obc_bdy_merge/NEMOGCM/NEMO/OPA_SRC/OBC/obcdta.F90 – NEMO

Ignore:
Timestamp:
2011-08-08T10:16:41+02:00 (13 years ago)
Author:
davestorkey
Message:

Bug fixes for the dynspg_ts case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/UKMO_MERCATOR_obc_bdy_merge/NEMOGCM/NEMO/OPA_SRC/OBC/obcdta.F90

    r2814 r2818  
    206206               ! Update barotropic boundary conditions only 
    207207               ! jit is optional argument for fld_read 
    208                IF( nn_dyn2d(ib_obc) .gt. 0 .and. nn_tides(ib_obc) .ne. 1 ) THEN 
    209                   jend = jstart + 2 
    210                   CALL fld_read( kt=kt, kn_fsbc=1, sd=bf(jstart:jend), map=nbmap_ptr(jstart:jend), jit=jit ) 
     208               IF( nn_dyn2d(ib_obc) .gt. 0 ) THEN 
     209                  IF( nn_tides(ib_obc) .eq. 1 ) THEN 
     210                     dta_obc(ib_obc)%ssh(:) = 0.0 
     211                     dta_obc(ib_obc)%u2d(:) = 0.0 
     212                     dta_obc(ib_obc)%v2d(:) = 0.0 
     213                  ELSE 
     214                     jend = jstart + 2 
     215                     CALL fld_read( kt=kt, kn_fsbc=1, sd=bf(jstart:jend), map=nbmap_ptr(jstart:jend), jit=jit ) 
     216                  ENDIF 
    211217               ENDIF 
    212218               IF( nn_tides(ib_obc) .gt. 0 ) THEN 
     
    217223                  jend = jstart + nb_obc_fld(ib_obc) - 1 
    218224                  CALL fld_read( kt=kt, kn_fsbc=1, sd=bf(jstart:jend), map=nbmap_ptr(jstart:jend), timeshift=1 ) 
     225               ENDIF 
     226               IF( nn_tides(ib_obc) .eq. 1 ) THEN 
     227                  dta_obc(ib_obc)%ssh(:) = 0.0 
     228                  dta_obc(ib_obc)%u2d(:) = 0.0 
     229                  dta_obc(ib_obc)%v2d(:) = 0.0 
    219230               ENDIF 
    220231               IF( nn_tides(ib_obc) .gt. 0 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.