1 |
heimbach |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/ebm/ebm_ini_vars.F,v 1.1 2004/05/14 21:10:34 heimbach Exp $ |
2 |
heimbach |
1.1 |
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "EBM_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
SUBROUTINE EBM_INI_VARS( myThid ) |
7 |
|
|
C |==========================================================| |
8 |
|
|
C | S/R INITIALISE VARIABLES FOR EBM | |
9 |
|
|
C |==========================================================| |
10 |
|
|
|
11 |
|
|
IMPLICIT NONE |
12 |
|
|
|
13 |
|
|
C === Global variables === |
14 |
|
|
#include "SIZE.h" |
15 |
|
|
#include "EEPARAMS.h" |
16 |
|
|
#include "PARAMS.h" |
17 |
|
|
#include "DYNVARS.h" |
18 |
|
|
#include "GRID.h" |
19 |
|
|
#include "FFIELDS.h" |
20 |
|
|
#ifdef ALLOW_EBM |
21 |
|
|
# include "EBM.h" |
22 |
|
|
#endif |
23 |
|
|
|
24 |
|
|
C === Routine arguments === |
25 |
|
|
C myThid - Instance number for this innvocation |
26 |
|
|
INTEGER myThid |
27 |
|
|
|
28 |
|
|
CEndOfInterface |
29 |
|
|
C == Local variables == |
30 |
|
|
|
31 |
|
|
#ifdef ALLOW_EBM |
32 |
|
|
|
33 |
|
|
C I, J, K - Loop counters |
34 |
|
|
INTEGER bi,bj,i,j,k |
35 |
|
|
INTEGER iMin, iMax, jMin, jMax |
36 |
|
|
|
37 |
|
|
C-- initially all forcing fields are zero |
38 |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
39 |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
40 |
|
|
DO j=1-OLy,sNy+OLy |
41 |
|
|
DO i=1-OLx,sNx+OLx |
42 |
|
|
Run (i,j,bi,bj) = 0. |
43 |
|
|
winPert(i,j,bi,bj) = 0. |
44 |
|
|
ENDDO |
45 |
|
|
ENDDO |
46 |
|
|
ENDDO |
47 |
|
|
ENDDO |
48 |
|
|
|
49 |
|
|
_EXCH_XY_R4(Run, myThid ) |
50 |
|
|
_EXCH_XY_R4(winPert, myThid ) |
51 |
|
|
|
52 |
|
|
CALL EBM_LOAD_CLIMATOLOGY( myThid ) |
53 |
|
|
|
54 |
|
|
CALL EBM_DRIVER( startTime, niter0, myThid ) |
55 |
|
|
|
56 |
|
|
print *, TmlS - 273.15, TtS - 273.15 |
57 |
|
|
print *, TmlN - 273.15, TtN - 273.15 |
58 |
|
|
|
59 |
|
|
DO bj = myByLo(myThid), myByHi(myThid) |
60 |
|
|
DO bi = myBxLo(myThid), myBxHi(myThid) |
61 |
heimbach |
1.2 |
iMin = 1-olx |
62 |
|
|
iMax = sNx+olx |
63 |
|
|
jMin = 1-oly |
64 |
|
|
jMax = sNy+oly |
65 |
heimbach |
1.1 |
|
66 |
|
|
CALL EBM_FORCING_SURF( |
67 |
|
|
I bi, bj, iMin, iMax, jMin, jMax, |
68 |
|
|
I startTime, niter0, myThid ) |
69 |
|
|
ENDDO |
70 |
|
|
ENDDO |
71 |
|
|
|
72 |
|
|
#endif /* ALLOW_EBM */ |
73 |
|
|
|
74 |
|
|
RETURN |
75 |
|
|
END |
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|