Changeset 869 for trunk/NEMO/LIM_SRC_3/limitd_me.F90
- Timestamp:
- 2008-03-26T10:21:54+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/LIM_SRC_3/limitd_me.F90
r868 r869 30 30 USE limcons 31 31 USE prtctl ! Print control 32 USE lib_mpp 32 33 33 34 IMPLICIT NONE … … 187 188 188 189 LOGICAL :: & 189 iterate_ridging, & ! if true, repeat the ridging190 190 asum_error ! flag for asum .ne. 1 191 192 INTEGER :: iterate_ridging ! if true, repeat the ridging 191 193 192 194 REAL(wp) :: & … … 282 284 !-----------------------------------------------------------------------------! 283 285 niter = 1 ! iteration counter 284 iterate_ridging = .true.285 286 287 DO WHILE ( iterate_ridging .AND. niter < nitermax )286 iterate_ridging = 1 287 288 289 DO WHILE ( iterate_ridging > 0 .AND. niter < nitermax ) 288 290 289 291 DO jj = 1, jpj … … 349 351 ! rates were reduced above), ridge again with new rates. 350 352 351 iterate_ridging = .false.353 iterate_ridging = 0 352 354 353 355 DO jj = 1, jpj … … 357 359 opning(ji,jj) = 0.0 358 360 ELSE 359 iterate_ridging = .true.361 iterate_ridging = 1 360 362 divu_adv(ji,jj) = (1.0 - asum(ji,jj)) / rdt_ice 361 363 closing_net(ji,jj) = MAX(0.0, -divu_adv(ji,jj)) … … 365 367 END DO 366 368 369 IF( lk_mpp ) CALL mpp_max(iterate_ridging) 370 367 371 ! Repeat if necessary. 368 372 ! NOTE: If strength smoothing is turned on, the ridging must be … … 372 376 niter = niter + 1 373 377 374 IF (iterate_ridging ) THEN378 IF (iterate_ridging == 1) THEN 375 379 IF (niter .GT. nitermax) THEN 376 380 WRITE(numout,*) ' ALERTE : non-converging ridging scheme ' … … 708 712 CALL lbc_lnk( strength, 'T', 1. ) 709 713 710 DO jj = 1, jpj - 1711 DO ji = 1, jpi - 1714 DO jj = 2, jpj - 1 715 DO ji = 2, jpi - 1 712 716 IF ( ( asum(ji,jj) - ato_i(ji,jj) ) .GT. epsi11) THEN ! ice is 713 717 ! present … … 727 731 END DO 728 732 729 DO jj = 1, jpj - 1730 DO ji = 1, jpi - 1733 DO jj = 2, jpj - 1 734 DO ji = 2, jpi - 1 731 735 strength(ji,jj) = zworka(ji,jj) 732 736 END DO 733 737 END DO 738 CALL lbc_lnk( strength, 'T', 1. ) 734 739 735 740 ENDIF ! ksmooth … … 1760 1765 ! Abort model in case of negative area. 1761 1766 !----------------------------------------------------------------- 1762 IF( M AXVAL(a_i(:,:,jl)) .LT. -epsi11 ) THEN1767 IF( MINVAL(a_i(:,:,jl)) .LT. -epsi11 ) THEN 1763 1768 DO jj = 1, jpj 1764 1769 DO ji = 1, jpi
Note: See TracChangeset
for help on using the changeset viewer.