/[MITgcm]/MITgcm_contrib/ESMF/global_ocean.128x64x15/code/driver_init.F
ViewVC logotype

Annotation of /MITgcm_contrib/ESMF/global_ocean.128x64x15/code/driver_init.F

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


Revision 1.4 - (hide annotations) (download)
Mon Mar 29 16:19:43 2004 UTC (21 years, 3 months ago) by cnh
Branch: MAIN
CVS Tags: adoption_1_0_pre_A, HEAD
Changes since 1.3: +37 -32 lines
Extra debugging information

1 cnh 1.4 C $Header: /u/gcmpack/MITgcm_contrib/ESMF/global_ocean.128x64x15/code/driver_init.F,v 1.3 2004/03/28 05:47:26 cnh Exp $
2 cnh 1.2 C $Name: $
3 cnh 1.1
4     #include "CPP_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: DRIVER_INIT
8     C !INTERFACE:
9     SUBROUTINE DRIVER_INIT(
10     I atm_HeatFlux, atm_TauX, atm_TauY,
11     I atm_Qlatent, atm_Qsensible, atm_Qlongwave,
12     I atm_Qshortwave,
13     I atm_uVelGround, atm_vVelGround,
14     I atm_FWFlux,
15     I atm_Hatm,
16     O ocn_SSTocn, ocn_Hocn
17     & )
18     C !DESCRIPTION: \bv
19     C *==================================================================
20     C | SUBROUTINE driver_init
21     C | o External driver control routine for MITgcm init phase.
22     C *==================================================================
23     C |
24     C | DRIVER routines are used to control the MITgcm code from an external
25     C | driver. This routine invokes the init phase of code execution
26     C |
27     C *==================================================================
28     C \ev
29     C !USES:
30     IMPLICIT NONE
31     C == Global variables ==
32     #include "SIZE.h"
33     #include "EEPARAMS.h"
34     #include "PARAMS.h"
35     #include "GRID.h"
36     #include "OCNCPL.h"
37     C == Routine arguments ==
38 cnh 1.4 _RL atm_HeatFlux( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39     _RL atm_TauX( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40     _RL atm_TauY( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41     _RL atm_Qlatent( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42     _RL atm_Qsensible( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43     _RL atm_Qlongwave( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
44     _RL atm_Qshortwave( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
45     _RL atm_uVelGround( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
46     _RL atm_vVelGround( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
47     _RL atm_FWFlux( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
48     _RL atm_Hatm( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
49     _RL ocn_SSTocn( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
50     _RL ocn_Hocn( 1-OLx:sNx+OLx,1-OLy:sNy+OLy)
51 cnh 1.1 C == Local variables ==
52     INTEGER iLoop
53     INTEGER myThid
54     INTEGER myCurrentIter
55     _RL myCurrentTime
56 cnh 1.2 INTEGER I,J,K,bi,bj
57 cnh 1.1 CEOP
58    
59     CALL COMP_OCN_PUSH_CONTEXT(1)
60    
61 cnh 1.2 myThid = 1
62 cnh 1.3 CALL EEBOOT()
63 cnh 1.1 C Read the import fields
64     DO bj=myByLo(myThid),myByHi(myThid)
65     DO bi=myBxLo(myThid),myBxHi(myThid)
66     DO j=1-OLy,sNy+OLy
67     DO i=1-OLx,sNx+OLx
68 cnh 1.4 HeatFlux( i,j,bi,bj)=atm_HeatFlux( i,j)
69     TauX( i,j,bi,bj)=atm_tauX( i,j)
70     TauY( i,j,bi,bj)=atm_tauY( i,j)
71     Qlatent( i,j,bi,bj)=atm_qLatent( i,j)
72     Qsensible( i,j,bi,bj)=atm_qSensible( i,j)
73     Qlongwave( i,j,bi,bj)=atm_qLongwave( i,j)
74     Qshortwave( i,j,bi,bj)=atm_qShortwave(i,j)
75     uVelGround( i,j,bi,bj)=atm_uVelGround(i,j)
76     vVelGround( i,j,bi,bj)=atm_vVelGround(i,j)
77     FWFlux( i,j,bi,bj)=atm_FWFlux( i,j)
78     Hatm( i,j,bi,bj)=atm_Hatm( i,j)
79 cnh 1.1 ENDDO
80     ENDDO
81     ENDDO
82     ENDDO
83    
84     CALL INITIALISE_FIXED( myThid )
85     CALL INITIALISE_VARIA( myThid )
86     myCurrentTime = startTime
87     myCurrentIter = nIter0
88     iLoop = 1
89     CALL FORWARD_STEP_SETUP( iLoop, myCurrentTime,
90     & myCurrentIter, myThid )
91    
92     C Fill the export fields
93     DO bj=myByLo(myThid),myByHi(myThid)
94     DO bi=myBxLo(myThid),myBxHi(myThid)
95 cnh 1.4 DO j=1,sNy
96     DO i=1,sNx
97     ocn_SSTocn(i,j) = SSTocn2cpl(i,j,bi,bj)
98     ocn_Hocn( i,j) = R_low( i,j,bi,bj)
99 cnh 1.1 ENDDO
100     ENDDO
101     ENDDO
102     ENDDO
103 cnh 1.4
104     WRITE( 6,*) 'MAXVAL SSTocn2cpl = ', MAXVAL(SSTocn2cpl(1:snx,1:sny,:,:))
105     WRITE( 6,*) 'MINVAL SSTocn2cpl = ', MINVAL(SSTocn2cpl(1:snx,1:sny,:,:))
106     WRITE( 6,*) 'MAXVAL ocn_SSTocn = ', MAXVAL(ocn_SSTocn(1:snx,1:sny))
107     WRITE( 6,*) 'MINVAL ocn_SSTocn = ', MINVAL(ocn_SSTocn(1:snx,1:sny))
108    
109     ! CLOSE(errorMessageUnit)
110     ! CLOSE(standardMessageUnit)
111 cnh 1.1 CALL COMP_OCN_POP_CONTEXT(1)
112    
113     RETURN
114     END

  ViewVC Help
Powered by ViewVC 1.1.22