SICOPOLIS V3.2
 All Classes Files Functions Variables Macros
calc_vz_static.F90
Go to the documentation of this file.
1 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 !
3 ! Subroutine : c a l c _ v z _ s t a t i c
4 !
5 !> @file
6 !!
7 !! Computation of the vertical velocity vz for static ice.
8 !!
9 !! @section Copyright
10 !!
11 !! Copyright 2014-2016 Ralf Greve
12 !!
13 !! @section License
14 !!
15 !! This file is part of SICOPOLIS.
16 !!
17 !! SICOPOLIS is free software: you can redistribute it and/or modify
18 !! it under the terms of the GNU General Public License as published by
19 !! the Free Software Foundation, either version 3 of the License, or
20 !! (at your option) any later version.
21 !!
22 !! SICOPOLIS is distributed in the hope that it will be useful,
23 !! but WITHOUT ANY WARRANTY; without even the implied warranty of
24 !! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 !! GNU General Public License for more details.
26 !!
27 !! You should have received a copy of the GNU General Public License
28 !! along with SICOPOLIS. If not, see <http://www.gnu.org/licenses/>.
29 !<
30 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31 
32 !-------------------------------------------------------------------------------
33 !> Computation of the vertical velocity vz for static ice.
34 !<------------------------------------------------------------------------------
35 subroutine calc_vz_static()
36 
37 use sico_types
39 use sico_vars
40 
41 implicit none
42 
43 integer(i4b) :: i, j, kc, kt
44 
45 do i=0, imax
46 do j=0, jmax
47 
48  if ((maske(j,i) == 0).or.(maske(j,i) == 3)) then ! grounded or floating ice
49 
50  vz_b(j,i) = dzb_dtau(j,i)-q_b_tot(j,i)
51  ! kinematic boundary condition at the ice base
52 
53  do kt=0, ktmax-1
54  vz_t(kt,j,i) = vz_b(j,i)
55  end do
56 
57  vz_m(j,i) = vz_b(j,i)
58 
59  do kc=0, kcmax-1
60  vz_c(kc,j,i) = vz_b(j,i)
61  end do
62 
63  vz_s(j,i) = vz_b(j,i)
64 
65  else ! maske(j,i) == (1 or 2)
66 
67  vz_b(j,i) = 0.0_dp
68 
69  do kt=0, ktmax-1
70  vz_t(kt,j,i) = 0.0_dp
71  end do
72 
73  vz_m(j,i) = 0.0_dp
74 
75  do kc=0, kcmax-1
76  vz_c(kc,j,i) = 0.0_dp
77  end do
78 
79  vz_s(j,i) = 0.0_dp
80 
81  end if
82 
83 end do
84 end do
85 
86 end subroutine calc_vz_static
87 !
Declarations of kind types for SICOPOLIS.
Definition: sico_types.F90:35
Declarations of global variables for SICOPOLIS (for the ANT domain).
Definition: sico_vars.F90:35
subroutine calc_vz_static()
Computation of the vertical velocity vz for static ice.
Declarations of global variables for SICOPOLIS.