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

Changeset 15729


Ignore:
Timestamp:
2022-02-28T11:19:22+01:00 (2 years ago)
Author:
hadjt
Message:

Update, only write statements from LWP.

Location:
NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE
Files:
2 edited

Legend:

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

    r15689 r15729  
    291291         ENDIF 
    292292 
     293      !! JT  
     294 
     295 
     296         
     297        WRITE(*,*) 'JTsshw:',jbdy,nimpp,njmpp,idx_bdy(jbdy)%nblenrim(igrd)   
     298 
     299        igrd = 1 
     300        DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   
     301           ii   = idx_bdy(jbdy)%nbi(ib,igrd) 
     302           ij   = idx_bdy(jbdy)%nbj(ib,igrd) 
     303           WRITE(*,*) 'JTsshv:',jbdy,nimpp+ii,njmpp+ij,dta_alias%ssh(ib) , tmask(ii,ij,1), sshn(ii,ij) 
     304        END DO 
     305 
     306 
     307      !! JT I think this need to go here. The previous location didn't have an affect on the model.  
     308      !       I think when time splitting, ln_dynspg_ts, you weren't seeing this effect, so trying it before the time splitting.  
     309      ! 
     310      !  
     311      ! davbyr - add a shift to the boundary + free elevation Enda, JT from NEMO RAN 3.6 
     312 
     313         
     314         IF(lwp) WRITE(numout,*) 'bdydta nambdy_ssh: lneed_ssh',kt, jbdy, dta_bdy(jbdy)%lneed_ssh, idx_bdy(jbdy)%nblenrim(igrd)  
     315 
     316 
     317         IF( dta_bdy(jbdy)%lneed_ssh ) THEN 
     318 
     319 
     320            igrd = 1 
     321            DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   ! ssh is used only on the rim 
     322               ii   = idx_bdy(jbdy)%nbi(ib,igrd) 
     323               ij   = idx_bdy(jbdy)%nbj(ib,igrd) 
     324               dta_alias%ssh(ib) = dta_alias%ssh(ib) + rn_ssh_shift(jbdy) * tmask(ii,ij,1) 
     325            END DO 
     326 
     327             IF( .NOT. dta_bdy(jbdy)%lforced_ssh ) THEN 
     328                 WRITE(*,*) 'bdydta nambdy_ssh: NOT lforced_ssh == True',kt, jbdy, dta_bdy(jbdy)%lforced_ssh 
     329 
     330                 igrd = 1 
     331                 DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   ! ssh is used only on the rim 
     332                    ii   = idx_bdy(jbdy)%nbi(ib,igrd) 
     333                    ij   = idx_bdy(jbdy)%nbj(ib,igrd) 
     334                    WRITE(*,*) 'JTssh:',jbdy, nproc,narea,ii,ij, dta_alias%ssh(ib), dta_bdy(jbdy)%ssh(ib), sshn(ii,ij) * tmask(ii,ij,1), sshn(ii,ij), tmask(ii,ij,1) 
     335                    dta_alias%ssh(ib) = sshn(ii,ij) * tmask(ii,ij,1) 
     336                    dta_bdy(jbdy)%ssh(ib) = sshn(ii,ij) * tmask(ii,ij,1) 
     337                 END DO 
     338 
     339             ELSE 
     340                 WRITE(*,*) 'bdydta nambdy_ssh: NOT lforced_ssh == False',kt, jbdy, dta_bdy(jbdy)%lforced_ssh 
     341             END IF   !.NOT. dta_bdy(jbdy)%lforced_ssh  
     342 
     343         END IF !dta_bdy(jbdy)%lneed_ssh 
     344 
     345      !--- END davbyr 
     346      !! JT I think this need to go here.  
     347 
     348 
     349 
     350 
     351 
     352 
    293353#if defined key_si3 
    294354         IF( dta_alias%lneed_ice .AND. idx_bdy(jbdy)%nblen(1) > 0 ) THEN 
     
    348408      END DO  ! jbdy 
    349409 
    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       !  
    354       ! davbyr - add a shift to the boundary + free elevation Enda, JT from NEMO RAN 3.6 
    355       DO jbdy = 1, nb_bdy 
    356          IF( dta_bdy(jbdy)%lneed_ssh ) THEN 
    357             igrd  = 1 
    358             DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   ! ssh is used only on the rim 
    359                 ii = idx_bdy(jbdy)%nbi(ib,igrd) 
    360                 ij = idx_bdy(jbdy)%nbj(ib,igrd) 
    361                 dta_bdy(jbdy)%ssh(ib) = dta_bdy(jbdy)%ssh(ib) + rn_ssh_shift(jbdy) * tmask(ii,ij,1) 
    362                 IF( .NOT. dta_bdy(jbdy)%lforced_ssh ) dta_bdy(jbdy)%ssh(ib) = sshn(ii,ij) * tmask(ii,ij,1) 
    363              END DO 
    364          END IF 
    365       END DO 
    366       !--- END davbyr 
    367       !! JT I think this need to go here.  
     410!      !! JT I think this need to go here. The previous location didn't have an affect on the model.  
     411!      !       I think when time splitting, ln_dynspg_ts, you weren't seeing this effect, so trying it before the time splitting.  
     412!      ! 
     413!      !  
     414!      ! davbyr - add a shift to the boundary + free elevation Enda, JT from NEMO RAN 3.6 
     415!      DO jbdy = 1, nb_bdy 
     416 
     417!         
     418!         IF(lwp) WRITE(numout,*) 'bdydta nambdy_ssh: lneed_ssh',kt, jbdy, dta_bdy(jbdy)%lneed_ssh 
     419 
     420 
     421!         IF( dta_bdy(jbdy)%lneed_ssh ) THEN 
     422!         
     423!            igrd  = 1 
     424 
     425!            DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   ! ssh is used only on the rim 
     426!                ii = idx_bdy(jbdy)%nbi(ib,igrd) 
     427!                ij = idx_bdy(jbdy)%nbj(ib,igrd) 
     428!                dta_bdy(jbdy)%ssh(ib) = dta_bdy(jbdy)%ssh(ib) + rn_ssh_shift(jbdy) * tmask(ii,ij,1) 
     429!             END DO 
     430 
     431!             IF( .NOT. dta_bdy(jbdy)%lforced_ssh ) THEN 
     432!                 IF(lwp) WRITE(numout,*) 'bdydta nambdy_ssh: NOT lforced_ssh == True',kt, jbdy, dta_bdy(jbdy)%lforced_ssh 
     433!                 DO ib = 1, idx_bdy(jbdy)%nblenrim(igrd)   ! ssh is used only on the rim 
     434!                    ii = idx_bdy(jbdy)%nbi(ib,igrd) 
     435!                    ij = idx_bdy(jbdy)%nbj(ib,igrd) 
     436!                    dta_bdy(jbdy)%ssh(ib) = sshn(ii,ij) * tmask(ii,ij,1) 
     437!                 END DO 
     438!             ELSE 
     439!                 IF(lwp) WRITE(numout,*) 'bdydta nambdy_ssh: NOT lforced_ssh == False',kt, jbdy, dta_bdy(jbdy)%lforced_ssh 
     440!             END IF   !.NOT. dta_bdy(jbdy)%lforced_ssh  
     441 
     442!         END IF !dta_bdy(jbdy)%lneed_ssh 
     443 
     444!      END DO ! jbdy 
     445!      !--- END davbyr 
     446!      !! JT I think this need to go here.  
    368447 
    369448 
  • NEMO/branches/UKMO/NEMO_4.0.4_CO9_shelf_climate/src/OCE/SBC/tide_mod.F90

    r15687 r15729  
    122122          ENDIF 
    123123           
    124           IF( lwp ) THEN 
    125  
    126               IF ( ln_tide_drift   ) THEN 
    127                   WRITE(numout,*) "       tides360: Tides continuous so equinoctal tides drift through the year," 
    128                   WRITE(numout,*) "                 as the S2-K2 beating occurs 5 days later every year." 
    129               ENDIF 
    130  
    131               IF ( ln_tide_compress   ) THEN 
    132                   WRITE(numout,*) "       tides360: The Tropical Year (and so some tidal periods) are compressed," 
    133                   WRITE(numout,*) "                 so the tides repeat with an annual cycle, so the " 
    134                   WRITE(numout,*) "                 the S2-K2 beating is fixed relative to the calendar, but the " 
    135                   WRITE(numout,*) "                 M2 period varies slightly." 
    136                   WRITE(numout,*) "                 Use with care, as this requires more work." 
    137               ENDIF 
    138  
    139               IF ( ( .NOT. ln_tide_drift  ) .AND. ( .NOT. ln_tide_compress ) ) THEN 
    140                   WRITE(numout,*) "       tides360: Use the default NEMO tide code, where the tides are reset " 
    141                   WRITE(numout,*) "                 at the beginning of each month, leading to a slight discontinuity" 
    142                   WRITE(numout,*) "                 in the tides, and making tidal analysis difficult." 
    143               ENDIF 
     124 
     125          IF ( ln_tide_drift   ) THEN 
     126              WRITE(numout,*) "       tides360: Tides continuous so equinoctal tides drift through the year," 
     127              WRITE(numout,*) "                 as the S2-K2 beating occurs 5 days later every year." 
    144128          ENDIF 
    145129 
     130          IF ( ln_tide_compress   ) THEN 
     131              WRITE(numout,*) "       tides360: The Tropical Year (and so some tidal periods) are compressed," 
     132              WRITE(numout,*) "                 so the tides repeat with an annual cycle, so the " 
     133              WRITE(numout,*) "                 the S2-K2 beating is fixed relative to the calendar, but the " 
     134              WRITE(numout,*) "                 M2 period varies slightly." 
     135              WRITE(numout,*) "                 Use with care, as this requires more work." 
     136          ENDIF 
     137 
     138          IF ( ( .NOT. ln_tide_drift  ) .AND. ( .NOT. ln_tide_compress ) ) THEN 
     139              WRITE(numout,*) "       tides360: Use the default NEMO tide code, where the tides are reset " 
     140              WRITE(numout,*) "                 at the beginning of each month, leading to a slight discontinuity" 
     141              WRITE(numout,*) "                 in the tides, and making tidal analysis difficult." 
     142          ENDIF 
     143 
    146144      ELSE         
    147          IF( lwp ) WRITE(numout,*) "       tides360: Gregorian calendar so using standard tides" 
     145          WRITE(numout,*) "       tides360: Gregorian calendar so using standard tides" 
    148146      ENDIF 
    149147 
Note: See TracChangeset for help on using the changeset viewer.