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 14259 for NEMO/branches/UKMO/NEMO_4.0.3_icb_speed_limit/src/OCE/ICB/icbutl.F90 – NEMO

Ignore:
Timestamp:
2021-01-05T12:11:16+01:00 (3 years ago)
Author:
davestorkey
Message:

UKMO/NEMO_4.0.3_icb_speed_limit : Bug fix and extra write-outs for error trap in icbutl_bilin_e.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.3_icb_speed_limit/src/OCE/ICB/icbutl.F90

    r13587 r14259  
    422422      IF    ( ij < mjg( 1 ) ) THEN   ;   ij = 1       ; ierr = ierr + 1 
    423423      ELSEIF( ij > mjg(jpj) ) THEN   ;   ij = jpj     ; ierr = ierr + 1 
    424       ELSE                           ;   ij  = mj1(ij) 
     424      ELSE                           ;   ij = mj1(ij) 
    425425      ENDIF 
    426426      ! 
     
    428428      IF( ij == jpj ) THEN ; ij = ij-1 ; ierr = ierr + 1 ; END IF 
    429429      ! 
    430       IF ( ierr > 0 ) CALL ctl_stop('STOP','icb_utl_bilin_e: an icebergs coordinates is out of valid range (out of bound error)') 
     430      IF ( ierr > 0 ) THEN 
     431         WRITE(numicb,*) '>>>> Out of valid range crash <<<<' 
     432         WRITE(numicb,*) 'new global position estimate (pi,pj) = ',pi,pj  
     433         WRITE(numicb,*) 'mig(1), mig(jpi) : ',mig(1),mig(jpi) 
     434         WRITE(numicb,*) 'mjg(1), mjg(jpj) : ',mjg(1),mjg(jpj) 
     435         WRITE(numicb,*) 'new local position estimate (ii,ij) = ',ii,ij  
     436         WRITE(numicb,*) 'jpi, jpj : ',jpi,jpj 
     437         WRITE(numicb,*) 'nlei, nlej : ',nlei,nlej 
     438         CALL ctl_stop('STOP','icb_utl_bilin_e: an icebergs coordinates is out of valid range (out of bound error)') 
     439      ENDIF 
    431440      ! 
    432441      IF(    0.0_wp <= zi .AND. zi < 0.5_wp   ) THEN 
Note: See TracChangeset for help on using the changeset viewer.