1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/ocn_export_ocnconfig.F,v 1.1 2003/12/15 02:49:09 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE OCN_EXPORT_OCNCONFIG( myThid ) |
8 |
C /==========================================================\ |
9 |
C | SUBROUTINE OCN_EXPORT_OCNCONFIG | |
10 |
C | o Routine for exporting ocean config to coupling level. | |
11 |
C |==========================================================| |
12 |
C | This version talks to the MIT Coupler. It uses the MIT | |
13 |
C | Coupler "checkpoint1" library calls. | |
14 |
C \==========================================================/ |
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 "OCNCPL.h" |
23 |
#include "OCNIDS.h" |
24 |
|
25 |
C == Routine arguments == |
26 |
C myThid - Thread number for this instance of the routine |
27 |
INTEGER myThid |
28 |
CEndOfInterface |
29 |
|
30 |
C == Local variables == |
31 |
INTEGER i,j,bi,bj |
32 |
|
33 |
DO bj = myByLo(myThid), myByHi(myThid) |
34 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
35 |
DO J=1-Oly,sNy+Oly |
36 |
DO I=1-Olx,sNx+Olx |
37 |
ocMxlD2cpl(i,j,bi,bj) = hFacC(i,j,1,bi,bj)*drF(1) |
38 |
ENDDO |
39 |
ENDDO |
40 |
ENDDO |
41 |
ENDDO |
42 |
|
43 |
C Send my configuration information to the coupler |
44 |
C o Send ocean model bathymetry map |
45 |
CALL COMPSEND_R8TILES( ocnMxlDName, |
46 |
I sNx, OLx, sNy, OLy, 1, nSx, nSy, ocMxlD2cpl ) |
47 |
|
48 |
RETURN |
49 |
END |