/[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.7 - (show annotations) (download)
Sun Nov 10 22:15:37 2013 UTC (10 years, 6 months ago) by yunx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
remove icefront_sgrunoff_read.F. Subglacial runoff is defined using obcs
pkg instead.

1 C $Header: /u/gcmpack/MITgcm/pkg/icefront/icefront_sgrunoff_read.F,v 1.6 2012/11/09 22:47:17 jmc 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 "FFIELDS.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