418 |
ENDIF |
ENDIF |
419 |
#endif /* ALLOW_OBCS */ |
#endif /* ALLOW_OBCS */ |
420 |
|
|
421 |
|
|
422 |
#ifdef ALLOW_THERM_SEAICE |
#ifdef ALLOW_THERM_SEAICE |
423 |
IF (useThermSeaIce) THEN |
IF (useThermSeaIce) THEN |
424 |
#ifndef DISABLE_DEBUGMODE |
#ifndef DISABLE_DEBUGMODE |
430 |
CALL ICE_FORCING( |
CALL ICE_FORCING( |
431 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
432 |
I myThid ) |
I myThid ) |
433 |
|
ELSE |
434 |
|
#endif /* ALLOW_THERM_SEAICE */ |
435 |
|
|
436 |
|
C-- Determines forcing terms based on external fields |
437 |
|
C relaxation terms, etc. |
438 |
|
#ifndef DISABLE_DEBUGMODE |
439 |
|
IF ( debugLevel .GE. debLevB ) |
440 |
|
& CALL DEBUG_CALL('EXTERNAL_FORCING_SURF',myThid) |
441 |
|
#endif |
442 |
|
CALL EXTERNAL_FORCING_SURF( |
443 |
|
I bi, bj, iMin, iMax, jMin, jMax, |
444 |
|
I myTime, myIter, myThid ) |
445 |
|
|
446 |
|
#ifdef ALLOW_THERM_SEAICE |
447 |
|
C-- end of if/else block useThermSeaIce -- |
448 |
ENDIF |
ENDIF |
449 |
#endif /* ALLOW_THERM_SEAICE */ |
#endif /* ALLOW_THERM_SEAICE */ |
450 |
|
|
735 |
END IF |
END IF |
736 |
#endif /* ALLOW_OBCS */ |
#endif /* ALLOW_OBCS */ |
737 |
|
|
738 |
|
C-- Freeze water |
739 |
|
IF ( allowFreezing .AND. .NOT. useSEAICE |
740 |
|
& .AND. .NOT.(useThermSeaIce.AND.k.EQ.1) ) THEN |
741 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
742 |
|
CADJ STORE gT(:,:,k,bi,bj) = comlev1_bibj_k |
743 |
|
CADJ & , key = kkey, byte = isbyte |
744 |
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
745 |
|
CALL FREEZE( bi, bj, iMin, iMax, jMin, jMax, k, myThid ) |
746 |
|
ENDIF |
747 |
|
|
748 |
C-- end of thermodynamic k loop (Nr:1) |
C-- end of thermodynamic k loop (Nr:1) |
749 |
ENDDO |
ENDDO |
750 |
|
|