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 |