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/obcini.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/obcini.F90

    r2814 r2818  
    5151      !! ** Input   :  obc_init.nc, input file for unstructured open boundaries 
    5252      !!----------------------------------------------------------------------       
    53       INTEGER  ::   ib_obc, ii, ij, ik, igrd, ib, ir   ! dummy loop indices 
    54       INTEGER  ::   icount, icountr, ibr_max, ilen1    ! local integers 
    55       INTEGER  ::   iw, ie, is, in, inum, id_dummy     !   -       - 
    56       INTEGER  ::   igrd_start, igrd_end, jpbdta       !   -       - 
    57       INTEGER, POINTER  ::  nbi, nbj, nbr              ! short cuts 
    58       REAL   , POINTER  ::  flagu, flagv               !    -   - 
    59       REAL(wp) ::   zefl, zwfl, znfl, zsfl             ! local scalars 
     53      INTEGER  ::   ib_obc, ii, ij, ik, igrd, ib, ir       ! dummy loop indices 
     54      INTEGER  ::   icount, icountr, ibr_max, ilen1, ibm1  ! local integers 
     55      INTEGER  ::   iw, ie, is, in, inum, id_dummy         !   -       - 
     56      INTEGER  ::   igrd_start, igrd_end, jpbdta           !   -       - 
     57      INTEGER, POINTER  ::  nbi, nbj, nbr                  ! short cuts 
     58      REAL   , POINTER  ::  flagu, flagv                   !    -   - 
     59      REAL(wp) ::   zefl, zwfl, znfl, zsfl                 ! local scalars 
    6060      INTEGER, DIMENSION (2)                ::   kdimsz 
    6161      INTEGER, DIMENSION(jpbgrd,jp_obc)       ::   nblendta         ! Length of index arrays  
     
    302302            idx_obc(ib_obc)%nblenrim(igrd) = 0 
    303303            DO ib = 1, nblendta(igrd,ib_obc) 
     304               ! check that data is in correct order in file 
     305               ibm1 = MAX(1,ib-1) 
     306               IF(lwp) THEN         ! Since all procs read global data only need to do this check on one proc... 
     307                  IF( nbrdta(ib,igrd,ib_obc) < nbrdta(ibm1,igrd,ib_obc) ) THEN 
     308                     CALL ctl_stop('obc_init : ERROR : boundary data in file must be defined in order of distance from edge nbr.', & 
     309                                   'A utility for re-ordering boundary coordinates and data files exists in CDFTOOLS') 
     310                  ENDIF     
     311               ENDIF 
    304312               ! check if point is in local domain 
    305313               IF(  nbidta(ib,igrd,ib_obc) >= iw .AND. nbidta(ib,igrd,ib_obc) <= ie .AND.   & 
Note: See TracChangeset for help on using the changeset viewer.