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 1884 for branches/TAM_V3_0/NEMO/OPA_SRC/OBC/obcdyn.F90 – NEMO

Ignore:
Timestamp:
2010-05-27T11:26:52+02:00 (14 years ago)
Author:
rblod
Message:

Light adaptation of NEMO direct model routine to handle TAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TAM_V3_0/NEMO/OPA_SRC/OBC/obcdyn.F90

    r1152 r1884  
    4747   REAL(wp) ::   rtaue  , rtauw  , rtaun  , rtaus  ,  & 
    4848                 rtauein, rtauwin, rtaunin, rtausin 
     49 
     50   LOGICAL  ::   ll_fbc 
    4951 
    5052   !!--------------------------------------------------------------------------------- 
     
    102104      END IF 
    103105 
    104       IF( lp_obc_east  )   CALL obc_dyn_east ( kt ) 
    105       IF( lp_obc_west  )   CALL obc_dyn_west ( kt ) 
    106       IF( lp_obc_north )   CALL obc_dyn_north( kt ) 
    107       IF( lp_obc_south )   CALL obc_dyn_south( kt ) 
     106      ll_fbc = ( ( ( kt < nit000+3  ) .AND. .NOT.  ln_rstart     ) .OR. lk_dynspg_exp )  
     107 
     108      IF ( cp_cfg == "indian" ) THEN 
     109         ll_fbc = ( ( ( kt < nit000+30 ) .AND. .NOT.  ln_obc_rstart ) .OR. lk_dynspg_exp )  
     110      ENDIF 
     111 
     112      IF( lp_obc_east  )   CALL obc_dyn_east !( kt ) 
     113      IF( lp_obc_west  )   CALL obc_dyn_west !( kt ) 
     114      IF( lp_obc_north )   CALL obc_dyn_north!( kt ) 
     115      IF( lp_obc_south )   CALL obc_dyn_south!( kt ) 
    108116 
    109117      IF( lk_mpp ) THEN 
     
    119127 
    120128 
    121    SUBROUTINE obc_dyn_east ( kt ) 
     129   SUBROUTINE obc_dyn_east 
    122130      !!------------------------------------------------------------------------------ 
    123131      !!                  ***  SUBROUTINE obc_dyn_east  *** 
     
    137145      !!------------------------------------------------------------------------------ 
    138146      !! * Arguments 
    139       INTEGER, INTENT( in ) ::   kt 
    140147 
    141148      !! * Local declaration 
     
    147154      ! -------------------------------------------------------- 
    148155 
    149       IF( ( kt < nit000+3 .AND. .NOT.ln_rstart ) .OR. lfbceast .OR. lk_dynspg_exp ) THEN 
     156      IF ( ll_fbc .OR. lfbceast ) THEN 
    150157 
    151158         ! 1.1 U zonal velocity     
     
    282289 
    283290 
    284    SUBROUTINE obc_dyn_west ( kt ) 
     291   SUBROUTINE obc_dyn_west 
    285292      !!------------------------------------------------------------------------------ 
    286293      !!                  ***  SUBROUTINE obc_dyn_west  *** 
     
    300307      !!------------------------------------------------------------------------------ 
    301308      !! * Arguments 
    302       INTEGER, INTENT( in ) ::   kt 
    303309 
    304310      !! * Local declaration 
     
    310316      ! -------------------------------------------------------- 
    311317 
    312       IF( ( kt < nit000+3 .AND. .NOT.ln_rstart ) .OR. lfbcwest .OR. lk_dynspg_exp ) THEN 
     318      IF ( ll_fbc .OR. lfbcwest ) THEN 
    313319 
    314320         ! 1.1 U zonal velocity 
     
    443449   END SUBROUTINE obc_dyn_west 
    444450 
    445    SUBROUTINE obc_dyn_north ( kt ) 
     451   SUBROUTINE obc_dyn_north 
    446452      !!------------------------------------------------------------------------------ 
    447453      !!                     SUBROUTINE obc_dyn_north 
     
    461467      !!------------------------------------------------------------------------------ 
    462468      !! * Arguments 
    463       INTEGER, INTENT( in ) ::   kt 
    464469 
    465470      !! * Local declaration 
     
    471476      ! --------------------------------------------------------- 
    472477  
    473       IF( ( kt < nit000+3 .AND. .NOT.ln_rstart ) .OR. lfbcnorth  .OR. lk_dynspg_exp ) THEN 
    474  
     478        IF ( ll_fbc .OR. lfbcnorth ) THEN 
     479     
    475480         ! 1.1 U zonal velocity 
    476481         ! -------------------- 
     
    611616         END DO 
    612617# endif 
     618 
     619 
    613620      END IF 
    614621 
    615622   END SUBROUTINE obc_dyn_north 
    616623 
    617    SUBROUTINE obc_dyn_south ( kt ) 
     624   SUBROUTINE obc_dyn_south 
    618625      !!------------------------------------------------------------------------------ 
    619626      !!                     SUBROUTINE obc_dyn_south 
     
    633640      !!------------------------------------------------------------------------------ 
    634641      !! * Arguments 
    635       INTEGER, INTENT( in ) ::   kt 
    636642 
    637643      !! * Local declaration 
     
    646652      ! --------------------------------------------------------- 
    647653 
    648       IF( ( kt < nit000+3 .AND. .NOT.ln_rstart ) .OR. lfbcsouth  .OR. lk_dynspg_exp ) THEN 
    649  
     654      IF ( ll_fbc .OR. lfbcsouth ) THEN 
     655       
    650656         ! 1.1 U zonal velocity 
    651657         ! -------------------- 
Note: See TracChangeset for help on using the changeset viewer.