subroutine SLTTDebugSetQ( xyzf_QMix )
use constants0, only : PI
use constants , only : RPlanet
use axesset , only : x_Lon, y_Lat
real(DP), intent(out) :: xyzf_QMix(0:imax-1, 1:jmax, 1:kmax, ncmax)
!
! Local variables
!
real(DP) :: clon, clat
real(DP) :: bell_radius, bell_height
real(DP) :: dist
integer :: i
integer :: j
integer :: k
integer :: n
clon = 90.0_DP * PI / 180.0_DP
clat = 20.0_DP * PI / 180.0_DP
bell_radius = RPlanet / 3.0_DP
bell_radius = RPlanet
bell_height = 1.0e-6_DP * 1.0e-10_DP
do n = 1, ncmax
do k = 1, kmax
do j = 1, jmax
do i = 0, imax-1
dist = RPlanet * acos( sin( clat ) * sin( y_Lat(j) ) + cos( clat ) * cos( y_Lat(j) ) * cos( x_Lon(i) - clon ) )
if( dist < bell_radius ) then
xyzf_QMix(i,j,k,n) = bell_height / 2.0_DP * ( 1.0_DP + cos( PI * dist / bell_radius ) )
else
xyzf_QMix(i,j,k,n) = 0.0_DP
end if
end do
end do
end do
end do
do n = 1, ncmax
do k = 1, kmax / 2
do j = 1, jmax
do i = 0, imax-1
xyzf_QMix(i,j,k,n) = 0.0_DP
end do
end do
end do
end do
end subroutine SLTTDebugSetQ