IF ( useSEAICE .OR. useThSIce ) THEN
LOGICAL useThSIce
& useStreamIce, useICEFRONT, useThSIce, useLand,
IF ( useRealFreshWaterFlux .AND. useThSIce ) THEN
IF ( (useSEAICE .OR. useThSIce) .AND. allowFreezing ) THEN
IF ( useImportThSIce .AND. useThSIce ) THEN
IF ( useThSIce .AND. ocn_cplExch2W_sIce ) THEN
IF ( useThSIce .AND. fluidIsWater ) THEN
IF ( seqFlag.EQ.0 .AND. useThSIce ) THEN
IF (useThSIce)
IF ( balanceEmPmR .AND. (.NOT.useSeaice .OR. useThSIce) ) THEN
IF ( balanceQnet .AND. (.NOT.useSeaice .OR. useThSIce) ) THEN
IF ( useRealFreshWaterFlux .AND. .NOT.useThSIce ) THEN
IF ( .NOT.useThSIce ) THEN
IF ( useThSIce ) THEN
IF (useThSIce) THEN
useThSIce =.FALSE.
CALL PACKAGES_PRINT_MSG( useThSIce, 'ThSIce', ' ' )
& useThSIce,
IF (useThSIce) CALL THSICE_CHECK( myThid )
IF (useThSIce) CALL PACKAGES_ERROR_MSG('ThSIce',' ',myThid)
IF ( aim_energPrecip .OR. useThSIce ) ALHevp = ALHC + ALHF
IF ( useThSIce .AND. stressReduction.GT. 0. _d 0 ) THEN
IF ( useThSIce ) QSW_underice = .TRUE.
& ( useThSIce .OR. useSEAICE ) ) THEN
& .NOT.useSEAICE .AND. .NOT.useThSIce ) THEN
IF ( .NOT.useSEAICE .AND. .NOT.useThSIce ) THEN
IF (useThSIce) CALL THSICE_COST_FINAL (myThid)
IF ( useThSIce .OR. useSEAICE .OR. useCoupler ) THEN