Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
! !! assumption is that as ice concentration is reduced or increased
! !! the snow and ice depths remain constant
! !! note that snow is being created where ice concentration is being increased
! !! - could be more sophisticated and
! !! not do this (but would need to alter h_snow)
!
! usave(:,:,:)=sb(:,:,:) ! use array as a temporary store
!
! DO jj = 1, jpj
! DO ji = 1, jpi
! ! calculate change in ice and snow mass per unit area
! ! positive values imply adding salt to the ocean (results from ice formation)
! ! fwf : ice formation and melting
!
! zfons = ( -nfresh_da(ji,jj)*soce + nfsalt_da(ji,jj) )*rn_Dt
!
! ! change salinity down to mixed layer depth
! mld=hmld_kara(ji,jj)
!
! ! prevent small mld
! ! less than 10m can cause salinity instability
! IF (mld < 10) mld=10
!
! ! set to bottom of a level
! DO jk = jpk-1, 2, -1
! IF ((mld > gdepw(ji,jj,jk,Kmm)) .and. (mld < gdepw(ji,jj,jk+1,Kmm))) THEN
! mld=gdepw(ji,jj,jk+1,Kmm)
! jkmax=jk
! ENDIF
! ENDDO
!
! ! avoid applying salinity balancing in shallow water or on land
! !
!
! ! dsal_ocn (psu kg m^-2) / (kg m^-3 * m)
!
! dsal_ocn=0.0_wp
! sal_thresh=5.0_wp ! minimum salinity threshold for salinity balancing
!
! if (tmask(ji,jj,1) > 0 .AND. tmask(ji,jj,jkmax) > 0 ) &
! dsal_ocn = zfons / (rhop(ji,jj,1) * mld)
!
! ! put increments in for levels in the mixed layer
! ! but prevent salinity below a threshold value
!
! DO jk = 1, jkmax
!
! IF (dsal_ocn > 0.0_wp .or. sb(ji,jj,jk)+dsal_ocn > sal_thresh) THEN
! sb(ji,jj,jk) = sb(ji,jj,jk) + dsal_ocn
! sn(ji,jj,jk) = sn(ji,jj,jk) + dsal_ocn
! ENDIF
!
! ENDDO
!
! ! ! salt exchanges at the ice/ocean interface
! ! zpmess = zfons / rDt_ice ! rDt_ice is ice timestep
! !
! !! Adjust fsalt. A +ve fsalt means adding salt to ocean
! !! fsalt(ji,jj) = fsalt(ji,jj) + zpmess ! adjust fsalt
! !!
! !! emps(ji,jj) = emps(ji,jj) + zpmess ! or adjust emps (see icestp1d)
! !! ! E-P (kg m-2 s-2)
! ! emp(ji,jj) = emp(ji,jj) + zpmess ! E-P (kg m-2 s-2)
! ENDDO !ji
! ENDDO !jj!
!
! ENDIF !ln_seaicebal
!
!#endif
!
ENDIF
!
END SUBROUTINE seaice_asm_inc
!!======================================================================
END MODULE asminc