/[MITgcm]/MITgcm/pkg/icefront/icefront_sgrunoff_read.F
ViewVC logotype

Contents of /MITgcm/pkg/icefront/icefront_sgrunoff_read.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Wed May 12 01:08:14 2010 UTC (13 years, 11 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint62g, checkpoint62u, checkpoint62k, checkpoint62i, checkpoint62t, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62z, checkpoint62x, checkpoint62j, checkpoint62h, checkpoint62y, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint64, checkpoint62p, checkpoint63, checkpoint62w, checkpoint62v
Changes since 1.4: +2 -1 lines
Check-in some bug fixes on behalf of Yun Xu.

1 C $Header: /u/gcmpack/MITgcm/pkg/icefront/icefront_sgrunoff_read.F,v 1.4 2010/05/04 21:41:59 dimitri Exp $
2 C $Name: $
3
4 #include "ICEFRONT_OPTIONS.h"
5
6 subroutine SGRUNOFF_READ(
7 I myTime, myIter, myThid)
8 c |==================================================================|
9 c | SUBROUTINE sgrunoff_read |
10 c |==================================================================|
11 c | read 2-D subglacial runoff data from files, |
12 c | and fill the lowest layer of 3-D addmass variable |
13 c |==================================================================|
14
15 implicit none
16
17 c == global variables ==
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "GRID.h"
22 #include "DYNVARS.h"
23 #include "ICEFRONT.h"
24 #ifdef ALLOW_EXF
25 # include "EXF_PARAM.h"
26 #endif
27
28 c == routine arguments ==
29 _RL myTime
30 integer myIter
31 integer myThid
32
33 #ifdef ALLOW_SUBGLACIAL_RUNOFF
34 c == local variables ==
35 C bi,bj,I,J,K :: loop counters
36 INTEGER bi,bj,I,J,K
37
38 call exf_set_runoff (
39 & sgrunofffile, sgrunoffstartdate, sgrunoffperiod,
40 & exf_inscal_sgrunoff,
41 & sgrunoff_exfremo_intercept, sgrunoff_exfremo_slope,
42 & sgrunoff, sgrunoff0, sgrunoff1, sgrunoffmask,
43 & mytime, myiter, mythid )
44 DO bj = myByLo(myThid), myByHi(myThid)
45 DO bi = myBxLo(myThid), myBxHi(myThid)
46 DO J = 1-Oly,sNy+Oly
47 DO I = 1-Olx,sNx+Olx
48 K = kLowC(I,J,bi,bj)
49 addmass(I,J,K,bi,bj) =
50 & addmass(I,J,K,bi,bj) + SGrunoff(I,J,bi,bj)
51 ENDDO
52 ENDDO
53 ENDDO
54 ENDDO
55 #endif /* ALLOW_SUBGLACIAL_RUNOFF */
56
57 RETURN
58 END

  ViewVC Help
Powered by ViewVC 1.1.22