/[MITgcm]/MITgcm/pkg/aim/aim_aim2dyn_exchanges.F
ViewVC logotype

Contents of /MITgcm/pkg/aim/aim_aim2dyn_exchanges.F

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


Revision 1.3 - (show annotations) (download)
Fri Sep 27 20:05:11 2002 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint48f_post, checkpoint51k_post, checkpoint47j_post, checkpoint48d_pre, checkpoint51l_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint52l_pre, checkpoint48i_post, checkpoint52e_pre, hrcube4, hrcube5, checkpoint52j_post, checkpoint47f_post, checkpoint48d_post, checkpoint51o_pre, checkpoint46j_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_post, checkpoint46i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint47a_post, checkpoint52d_pre, checkpoint48a_post, checkpoint51f_pre, checkpoint48e_post, checkpoint48h_post, checkpoint50c_pre, branchpoint-genmake2, checkpoint46k_post, checkpoint52j_pre, branch-netcdf, checkpoint50d_pre, checkpoint51r_post, checkpoint47i_post, checkpoint52b_pre, checkpoint46l_pre, checkpoint46j_pre, checkpoint51i_post, checkpoint47h_post, checkpoint48c_post, checkpoint46l_post, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, checkpoint52m_post, checkpoint51c_post, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint51o_post, checkpoint48g_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint51, checkpoint50, checkpoint52, checkpoint50d_post, checkpoint52d_post, checkpoint51b_pre, checkpoint52a_post, checkpoint47g_post, checkpoint52b_post, checkpoint52f_post, checkpoint52c_post, checkpoint46m_post, checkpoint51h_pre, checkpoint50g_post, checkpoint50b_pre, checkpoint51g_post, ecco_c52_e35, checkpoint51f_post, checkpoint48b_post, checkpoint50b_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52a_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint51m_post, checkpoint51t_post, checkpoint47, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint51i_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch, branch-exfmods-curt
Changes since 1.2: +5 -7 lines
Clean up AIM package (and keep the results unchanged):
a) include CPP_OPTION and use IMPLICT NONE in all routines ;
  declare all the variables _RL ;
b) use _d 0 for all numerical constants in Physics package,
  so that the code works with g77 (and give the right answer)
c) use ifdef ALLOW_AIM everywhere so that the package can be
 compiled without increasing the memory size.
d) clean-up the AIM interface (remove commented lines, unused
  variables ...)

1 C $Header: /u/gcmpack/MITgcm/pkg/aim/aim_aim2dyn_exchanges.F,v 1.2 2001/08/03 19:01:34 adcroft Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE AIM_AIM2DYN_EXCHANGES(
8 I myCurrentTime,myThid)
9 C /==========================================================\
10 C | S/R AIM_AIM2DYN_EXCHANGES |
11 C | o Do overlap exchanges for AIM related quantities. |
12 C | AIM does not compute into overlaps so exchanges |
13 C | are needed for AIM quantities. |
14 C \==========================================================/
15 IMPLICIT NONE
16
17 C == Global data ==
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "GRID.h"
22 #include "DYNVARS.h"
23
24 #include "AIM2DYN.h"
25
26 C == Routine arguments ==
27 _RL myCurrentTime
28 INTEGER myThid
29 CEndOfInterface
30
31 #ifdef ALLOW_AIM
32
33 C == Local variables ==
34 C I,J,K - Loop counters
35 C bi,bj
36 c INTEGER I,J,K, bi,bj
37
38 _EXCH_XY_R8( aim_drag, myThid )
39 c _EXCH_XYZ_R8( gT, myThid )
40 c _EXCH_XYZ_R8( gS, myThid )
41 c _EXCH_XYZ_R8( gTNM1, myThid )
42 c _EXCH_XYZ_R8( gSNM1, myThid )
43 c DO bj=myByLo(myThid),myByHi(myThid)
44 c DO bi=myBxLo(myThid),myBxHi(myThid)
45 c DO K=1,Nr
46 c DO J=1-OLy,sNy+OLy
47 c DO I=1-OLx,sNx+OLx
48 c gT(i,j,k,bi,bj) =
49 c & maskC(i,j,k,bi,bj)*gT(i,j,k,bi,bj)
50 c gTNM1(i,j,k,bi,bj) =
51 c & maskC(i,j,k,bi,bj)*gTNM1(i,j,k,bi,bj)
52 c gS(i,j,k,bi,bj) =
53 c & maskC(i,j,k,bi,bj)*gS(i,j,k,bi,bj)
54 c gSNM1(i,j,k,bi,bj) =
55 c & maskC(i,j,k,bi,bj)*gSNM1(i,j,k,bi,bj)
56 c ENDDO
57 c ENDDO
58 c ENDDO
59 c ENDDO
60 c ENDDO
61
62 #endif /* ALLOW_AIM */
63
64 RETURN
65 END

  ViewVC Help
Powered by ViewVC 1.1.22