/[MITgcm]/MITgcm/pkg/aim_ocn_coupler/atm_to_ocn_mapxyr8.F
ViewVC logotype

Contents of /MITgcm/pkg/aim_ocn_coupler/atm_to_ocn_mapxyr8.F

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


Revision 1.1 - (show annotations) (download)
Mon Dec 15 02:28:00 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint57m_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint58e_post, checkpoint57v_post, checkpoint57g_pre, checkpoint52j_post, checkpoint57f_post, checkpoint52e_post, checkpoint57s_post, checkpoint57j_post, checkpoint58b_post, checkpoint57b_post, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint55d_pre, checkpoint57g_post, checkpoint57a_post, checkpoint55j_post, checkpoint56b_post, checkpoint57h_pre, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint52j_pre, checkpoint54a_post, checkpoint55h_post, checkpoint52n_post, checkpoint54b_post, checkpoint58h_post, checkpoint57e_post, checkpoint54d_post, checkpoint56c_post, checkpoint54e_post, checkpoint55b_post, checkpoint57h_post, checkpoint52m_post, checkpoint57y_pre, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57c_pre, hrcube5, checkpoint53b_post, checkpoint57o_post, checkpoint55g_post, checkpoint57r_post, checkpoint57k_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint52l_post, checkpoint52k_post, checkpoint58, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint52d_post, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint52f_post, checkpoint57n_post, checkpoint58d_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint57z_post, checkpoint54f_post, eckpoint57e_pre, checkpoint58c_post, checkpoint57c_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post, checkpoint52i_post, checkpoint55i_post, checkpoint57l_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint55d_post
check-in the first version of the coupler for multi-components set-up.

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE ATM_TO_OCN_MAPXYR8(
8 I aNx, aNy,
9 I fld_atm,
10 I oNx, oNy,
11 O fld_ocn )
12 C /==========================================================\
13 C | SUBROUTINE ATM_TO_OCN_MAPXYR8 |
14 C | o Maps atmos. field to ocean field for XY 64-bit float |
15 C | field. |
16 C \==========================================================/
17 IMPLICIT NONE
18
19 C == Routine arguments ==
20 C fld_atm - Atmos. grid field
21 C aNx - Atmos. grid global extent in X
22 C aNy - Atmos. grid global extent in Y
23 C fld_ocn - Ocean grid field (atmos field will be mapped to this
24 C field).
25 C oNx - Ocean grid global extent in X
26 C oNy - Ocean grid global extent in Y
27 INTEGER aNx
28 INTEGER aNy
29 Real*8 fld_atm(aNx, aNy)
30 INTEGER oNx
31 INTEGER oNy
32 Real*8 fld_ocn(oNx, oNy)
33 CEndOfInterface
34
35 C == Local variables ==
36 INTEGER I,J
37
38 C Set to zero's everywhere
39 DO J=1,oNy
40 DO I=1,oNx
41 fld_ocn(I,J)=0.
42 ENDDO
43 ENDDO
44 C Now copy intersection of _atm and _ocn into
45 C _ocn.
46 DO J=1,MIN(aNy,oNy)
47 DO I=1,MIN(aNx,oNx)
48 fld_ocn(I,J)=fld_atm(I,J)
49 ENDDO
50 ENDDO
51
52 RETURN
53 END

  ViewVC Help
Powered by ViewVC 1.1.22