SICOPOLIS V3.2
 All Classes Files Functions Variables Macros
calc_water_bas.F90
Go to the documentation of this file.
1 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 !
3 ! Subroutine : c a l c _ w a t e r _ b a s
4 !
5 !> @file
6 !!
7 !! Computation of the thickness of the water column under the ice base.
8 !!
9 !! @section Copyright
10 !!
11 !! Copyright 2009-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 thickness of the water column under the ice base.
34 !<------------------------------------------------------------------------------
35 subroutine calc_water_bas(z_sl)
36 
37 use sico_types
39 use sico_vars
40 
41 implicit none
42 
43 real(dp), intent(in) :: z_sl
44 
45 integer(i4b) :: i, j
46 
47 !-------- Water column --------
48 
49 do i=0, imax
50 do j=0, jmax
51 
52  if (maske(j,i)==0_i2b) then ! grounded ice
53  h_w(j,i) = 0.0_dp ! Effective thickness of subglacial water.
54  ! So far no computation, just set to zero.
55  else if (maske(j,i)==1_i2b) then ! ice-free land
56  h_w(j,i) = 0.0_dp
57  else if (maske(j,i)==2_i2b) then ! ocean
58  h_w(j,i) = z_sl-zl(j,i)
59  else ! maske(j,i)==3_i2b, floating ice
60  h_w(j,i) = zb(j,i)-zl(j,i)
61  end if
62 
63 end do
64 end do
65 
66 end subroutine calc_water_bas
67 !
subroutine calc_water_bas(z_sl)
Computation of the thickness of the water column under the ice base.
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
Declarations of global variables for SICOPOLIS.