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

Changeset 15689


Ignore:
Timestamp:
2022-02-03T14:45:19+01:00 (2 years ago)
Author:
hadjt
Message:

Bug Fix

The nambdy_ssh code appears to be added in the wrong place, so has no effect. This may only be a problem when time splitting.

I have moved it up, and it appears to now have an effect

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE/BDY/bdydta.F90

    r14364 r15689  
    348348      END DO  ! jbdy 
    349349 
    350       IF ( ln_tide ) THEN 
    351          IF (ln_dynspg_ts) THEN      ! Fill temporary arrays with slow-varying bdy data                            
    352             DO jbdy = 1, nb_bdy      ! Tidal component added in ts loop 
    353                IF ( nn_dyn2d_dta(jbdy) .GE. 2 ) THEN 
    354                   IF( ASSOCIATED(dta_bdy(jbdy)%ssh) ) dta_bdy_s(jbdy)%ssh(:) = dta_bdy(jbdy)%ssh(:) 
    355                   IF( ASSOCIATED(dta_bdy(jbdy)%u2d) ) dta_bdy_s(jbdy)%u2d(:) = dta_bdy(jbdy)%u2d(:) 
    356                   IF( ASSOCIATED(dta_bdy(jbdy)%v2d) ) dta_bdy_s(jbdy)%v2d(:) = dta_bdy(jbdy)%v2d(:) 
    357                ENDIF 
    358             END DO 
    359          ELSE ! Add tides if not split-explicit free surface else this is done in ts loop 
    360             ! 
    361             CALL bdy_dta_tides( kt=kt, kt_offset=kt_offset ) 
    362          ENDIF 
    363       ENDIF 
    364        
     350      !! JT I think this need to go here. The previous location didn't have an affect on the model.  
     351      !       I think when time splitting, ln_dynspg_ts, you weren't seeing this effect, so trying it before the time splitting.  
     352      ! 
     353      !  
    365354      ! davbyr - add a shift to the boundary + free elevation Enda, JT from NEMO RAN 3.6 
    366355      DO jbdy = 1, nb_bdy 
     
    376365      END DO 
    377366      !--- END davbyr 
     367      !! JT I think this need to go here.  
     368 
     369 
     370      IF ( ln_tide ) THEN 
     371         IF (ln_dynspg_ts) THEN      ! Fill temporary arrays with slow-varying bdy data                            
     372            DO jbdy = 1, nb_bdy      ! Tidal component added in ts loop 
     373               IF ( nn_dyn2d_dta(jbdy) .GE. 2 ) THEN 
     374                  IF( ASSOCIATED(dta_bdy(jbdy)%ssh) ) dta_bdy_s(jbdy)%ssh(:) = dta_bdy(jbdy)%ssh(:) 
     375                  IF( ASSOCIATED(dta_bdy(jbdy)%u2d) ) dta_bdy_s(jbdy)%u2d(:) = dta_bdy(jbdy)%u2d(:) 
     376                  IF( ASSOCIATED(dta_bdy(jbdy)%v2d) ) dta_bdy_s(jbdy)%v2d(:) = dta_bdy(jbdy)%v2d(:) 
     377               ENDIF 
     378            END DO 
     379         ELSE ! Add tides if not split-explicit free surface else this is done in ts loop 
     380            ! 
     381            CALL bdy_dta_tides( kt=kt, kt_offset=kt_offset ) 
     382         ENDIF 
     383      ENDIF 
    378384       
    379385      ! 
Note: See TracChangeset for help on using the changeset viewer.