7 !! Definition of the initial surface and bedrock topography
8 !! (including gradients) and of the horizontal grid spacings dxi, deta.
9 !! For ice-free initial topography with relaxed lithosphere.
13 !! Copyright 2009-2013 Ralf Greve
17 !! This file is part of SICOPOLIS.
19 !! SICOPOLIS is free software: you can redistribute it and/or modify
20 !! it under the terms of the GNU General Public License as published by
21 !! the Free Software Foundation, either version 3 of the License, or
22 !! (at your option) any later version.
24 !! SICOPOLIS is distributed in the hope that it will be useful,
25 !! but WITHOUT ANY WARRANTY; without even the implied warranty of
26 !! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 !! GNU General Public License for more details.
29 !! You should have received a copy of the GNU General Public License
30 !! along with SICOPOLIS. If not, see <http://www.gnu.org/licenses/>.
32 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
35 !> Definition of the initial surface and bedrock topography
36 !! (including gradients) and of the horizontal grid spacings dxi, deta.
37 !! For ice-free initial topography with relaxed lithosphere.
38 !<------------------------------------------------------------------------------
45 integer(i4b) :: i, j, n
53 open(23, iostat=ios, &
54 file=inpath//
'/tibet/'//zl0_file, &
55 recl=16384, status=
'old')
57 if (ios.ne.0) stop
' topography2: Error when opening the zl0 file!'
59 open(24, iostat=ios, &
60 file=inpath//
'/tibet/'//mask_present_file, &
61 recl=1024, status=
'old')
63 if (ios.ne.0) stop
' topography2: Error when opening the mask file!'
65 do n=1, 6;
read(23,
'(a)') ch_dummy;
end do
68 read(23,*) (zl0(j,i), i=0,imax)
71 do n=1, 6;
read(24,
'(a)') ch_dummy;
end do
74 read(24,2300) (maske(j,i), i=0,imax)
77 close(23, status=
'keep')
78 close(24, status=
'keep')
80 2300 format(imax(i1),i1)
87 xi0 = lambda_0 *pi_180
93 if (maske(j,i) <= 1 )
then
100 #if ( MARGIN==1 || MARGIN==2 )
110 xi(i) = xi0 +
real(i,dp)*dxi
111 eta(j) = eta0 +
real(j,dp)*deta
113 call
geo_coord(phi(j,i), lambda(j,i), xi(i), eta(j))
121 dzs_dtau(j,i) = 0.0_dp
122 dzm_dtau(j,i) = 0.0_dp
123 dzb_dtau(j,i) = 0.0_dp
124 dzl_dtau(j,i) = 0.0_dp
125 dh_c_dtau(j,i) = 0.0_dp
126 dh_t_dtau(j,i) = 0.0_dp
145 area(j,i) = sq_g11_g(j,i)*sq_g22_g(j,i)*dxi*deta