/[MITgcm]/MITgcm/pkg/ocn_compon_interf/cpl_exch_configs.F
ViewVC logotype

Contents of /MITgcm/pkg/ocn_compon_interf/cpl_exch_configs.F

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


Revision 1.1 - (show annotations) (download)
Mon Dec 15 02:49:09 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint57o_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint58e_post, checkpoint57v_post, checkpoint52n_post, checkpoint52j_post, checkpoint53d_post, checkpoint58u_post, checkpoint58w_post, checkpoint54a_pre, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint52e_post, checkpoint57s_post, checkpoint54a_post, checkpoint53c_post, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint60, checkpoint61, checkpoint62, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint52l_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint52k_post, checkpoint57g_pre, checkpoint54b_post, checkpoint53b_pre, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint54d_post, checkpoint56c_post, checkpoint52m_post, checkpoint57y_pre, checkpoint55, checkpoint53a_post, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint53b_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, checkpoint53, checkpoint52d_post, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint52f_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, hrcube5, checkpoint58o_post, checkpoint57z_post, checkpoint57c_post, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint52i_post, checkpoint52j_pre, checkpoint58v_post, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, checkpoint57h_post, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint55d_post
Ocean interface S/R to exchange with the coupler.

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE CPL_EXCH_CONFIGS( myThid )
8 C *==========================================================*
9 C | SUBROUTINE CPL_EXCH_CONFIGS |
10 C | o Controlling routine for initial config exchange between|
11 C | component models and ocean component. |
12 C | - Oceanic version - |
13 C *==========================================================*
14 C | Controls the import of configuration information |
15 C | (grid/topography,etc...) from other components and the |
16 C | export of configuration information from this component. |
17 C | The routine does some basic checking on consistency |
18 C | components and summarizes the information that has been |
19 C | imported. |
20 C | The routine will need to be customised for different |
21 C | styles of coupled run. The coupler requires consistency |
22 C | between sending and receiving operations posted by |
23 C | various components. Therefore changes in one component |
24 C | model CPL_EXCH_CONFIG may require changes in other |
25 C | component models CPL_EXCH_CONFIG routines as well |
26 C | as in the CPL_MASTER_EXCH_CONFIG routine. |
27 C *==========================================================*
28 IMPLICIT NONE
29
30 C == Global variables ==
31 #include "SIZE.h"
32 #include "EEPARAMS.h"
33 #include "GRID.h"
34 #include "OCNCPL.h"
35
36 C == Routine arguments ==
37 C myThid - Thread number for this instance of the routine
38 INTEGER myThid
39 CEndOfInterface
40
41 C == Local variables ==
42 INTEGER I,J,K,bi,bj
43 INTEGER iDiff
44 INTEGER jDiff
45 INTEGER biDiff
46 INTEGER bjDiff
47 CHARACTER*(MAX_LEN_MBUF) msgBuf
48 _RL seaSurface_ocn
49 _RL groundLevel_atm
50
51 C Post my configuration information to the coupler "layer".
52 CALL OCN_EXPORT_OCNCONFIG( myThid )
53
54 C Import other component model(s) configuration(s) from the
55 C coupler "layer".
56 C o Get atmospheric model configuration
57 CALL OCN_IMPORT_ATMCONFIG( myThid )
58
59 C Summarise fields that were imported.
60 C o Plot atmosphere orography
61 CALL PLOT_FIELD_XYRL( Hatm,
62 & 'Atmosphere orography on ocean grid',
63 & 1, myThid )
64
65 C Do consistency checks on imported fields.
66 C o Check that atmos. depth is equal to sea-level for all ocean points.
67 C Wherever there is ocean check the atmos extends to the sea-surface.
68 iDiff = 0
69 jDiff = 0
70 biDiff = 0
71 bjDiff = 0
72 seaSurface_ocn = 0. _d 0
73 groundLevel_atm = 1. _d 5
74 DO bj=myByLo(myTHid),myByHi(myThid)
75 DO bi=myBxLo(myThid),myBxHi(myThid)
76 DO J=1,sNy
77 DO I=1,sNx
78 IF ( R_low(I,J,bi,bj) .NE. seaSurface_ocn .AND.
79 & Hatm(I,J,bi,bj) .NE. groundLevel_atm ) THEN
80 iDiff = I
81 jDiff = J
82 biDiff = bi
83 bjDiff = bj
84 WRITE(msgBuf,'(A,I4,A,I4,A,I4,A,I4,A)')
85 & 'Inconsistent land/sea mask @ (i=',iDiff,
86 & ',j=',jDiff,',bi=',biDiff,',bj=',bjDiff,')'
87 CALL PRINT_ERROR( msgBuf, 1 )
88 WRITE(msgBuf,'(A,E30.15)')
89 & 'H (atmosphere) ==',Hatm(I,J,bi,bj)
90 CALL PRINT_ERROR( msgBuf, 1 )
91 WRITE(msgBuf,'(A,E30.15)')
92 & 'H (ocean) ==',R_low(I,J,bi,bj)
93 CALL PRINT_ERROR( msgBuf, 1 )
94 ENDIF
95 ENDDO
96 ENDDO
97 ENDDO
98 ENDDO
99
100 IF ( iDiff .NE. 0 ) THEN
101 C At least one point had land/sea "inconsistency" between atmos.
102 C and ocean. Stop if this happens.
103 Ccnh STOP 'ABNORMAL END: S/R OCN_EXCH_CONFIGS'
104 ENDIF
105
106 RETURN
107 END

  ViewVC Help
Powered by ViewVC 1.1.22