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

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

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


Revision 1.3 - (show annotations) (download)
Thu Jun 15 23:29:17 2006 UTC (17 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58u_post, checkpoint58w_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58o_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_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, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58m_post
Changes since 1.2: +1 -1 lines
check-in those files again (deleted accidentally)

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_ocn_coupler/atm_to_ocn_mapxyr8.F,v 1.1 2003/12/15 02:28:00 jmc Exp $
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