/[MITgcm]/MITgcm/pkg/ebm/ebm_ini_vars.F
ViewVC logotype

Annotation of /MITgcm/pkg/ebm/ebm_ini_vars.F

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


Revision 1.1 - (hide annotations) (download)
Fri May 14 21:10:34 2004 UTC (20 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint53b_post
Commiting new energy balance model to repository
o package is pkg/ebm
o verif. is verification/global_ocean_ebm
o references are in ebm_driver.F
Will need long integration testing.

1 heimbach 1.1 C $Header: $
2     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     iMin = 1 - 2
62     iMax = sNx+1 + 2
63     jMin = 1 - 2
64     jMax = sNy+1 + 2
65    
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    

  ViewVC Help
Powered by ViewVC 1.1.22