1 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/ocn_export_ocnconfig.F,v 1.2 2004/05/21 19:42:26 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CBOP 0 |
7 |
C !ROUTINE: OCN_EXPORT_OCNCONFIG |
8 |
|
9 |
C !INTERFACE: |
10 |
SUBROUTINE OCN_EXPORT_OCNCONFIG( myThid ) |
11 |
|
12 |
C !DESCRIPTION: |
13 |
C *==========================================================* |
14 |
C | SUBROUTINE OCN_EXPORT_OCNCONFIG |
15 |
C | o Routine for exporting ocean config to coupling level. |
16 |
C *==========================================================* |
17 |
C | This version talks to the MIT Coupler. It uses the MIT |
18 |
C | Coupler "checkpoint1" library calls. |
19 |
C *==========================================================* |
20 |
|
21 |
C !USES: |
22 |
IMPLICIT NONE |
23 |
C == Global variables == |
24 |
#include "SIZE.h" |
25 |
#include "EEPARAMS.h" |
26 |
#include "PARAMS.h" |
27 |
#include "GRID.h" |
28 |
#include "OCNCPL.h" |
29 |
#include "OCNIDS.h" |
30 |
|
31 |
C !INPUT/OUTPUT PARAMETERS: |
32 |
C == Routine arguments == |
33 |
C myThid :: Thread number for this instance of the routine |
34 |
INTEGER myThid |
35 |
CEOP |
36 |
|
37 |
C == Local variables == |
38 |
INTEGER i,j,bi,bj |
39 |
|
40 |
DO bj = myByLo(myThid), myByHi(myThid) |
41 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
42 |
DO J=1-Oly,sNy+Oly |
43 |
DO I=1-Olx,sNx+Olx |
44 |
ocMxlD2cpl(i,j,bi,bj) = hFacC(i,j,1,bi,bj)*drF(1) |
45 |
ENDDO |
46 |
ENDDO |
47 |
ENDDO |
48 |
ENDDO |
49 |
|
50 |
C Send my configuration information to the coupler |
51 |
C o Send ocean model bathymetry map |
52 |
_BARRIER |
53 |
_BEGIN_MASTER( myThid ) |
54 |
CALL COMPSEND_R8TILES( |
55 |
I ocnMxlDName, sNx, OLx, sNy, OLy, 1, nSx, nSy, |
56 |
I ocMxlD2cpl ) |
57 |
_END_MASTER( myThid ) |
58 |
_BARRIER |
59 |
|
60 |
RETURN |
61 |
END |