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

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

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


Revision 1.4 - (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, checkpoint53f_post, checkpoint47j_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint48d_pre, checkpoint51l_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint57m_post, checkpoint52l_pre, checkpoint48i_post, checkpoint52e_pre, hrcube4, hrcube5, checkpoint57g_pre, checkpoint52j_post, checkpoint47f_post, checkpoint48d_post, checkpoint51o_pre, checkpoint57f_post, checkpoint46j_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_post, checkpoint46i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint57j_post, checkpoint47a_post, checkpoint57b_post, checkpoint52d_pre, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint48a_post, checkpoint55d_pre, checkpoint51f_pre, checkpoint57g_post, checkpoint48e_post, checkpoint57c_pre, checkpoint48h_post, checkpoint55j_post, checkpoint56b_post, checkpoint50c_pre, checkpoint57h_pre, branchpoint-genmake2, checkpoint46k_post, checkpoint52j_pre, checkpoint54a_post, branch-netcdf, checkpoint50d_pre, checkpoint55h_post, checkpoint51r_post, checkpoint47i_post, checkpoint52b_pre, checkpoint52n_post, checkpoint54b_post, checkpoint46l_pre, checkpoint46j_pre, checkpoint51i_post, checkpoint57e_post, checkpoint54d_post, checkpoint47h_post, checkpoint48c_post, checkpoint46l_post, checkpoint56c_post, checkpoint54e_post, checkpoint55b_post, checkpoint51e_post, checkpoint51b_post, checkpoint51l_pre, checkpoint52m_post, checkpoint51c_post, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57a_post, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint56, checkpoint57o_post, checkpoint55g_post, checkpoint57h_done, checkpoint51o_post, checkpoint48g_post, checkpoint57k_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint57h_post, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint53b_post, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52d_post, checkpoint51b_pre, checkpoint52a_post, checkpoint47g_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint57n_post, checkpoint52c_post, checkpoint46m_post, checkpoint57p_post, checkpoint51h_pre, checkpoint50g_post, checkpoint50b_pre, checkpoint51g_post, ecco_c52_e35, checkpoint54f_post, checkpoint51f_post, checkpoint48b_post, checkpoint50b_post, eckpoint57e_pre, checkpoint57c_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52a_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint51m_post, checkpoint51t_post, checkpoint53d_pre, checkpoint47, checkpoint55e_post, checkpoint54c_post, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint55i_post, checkpoint51i_pre, checkpoint57l_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51s_post, checkpoint55d_post
Branch point for: netcdf-sm0, branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch, branch-exfmods-curt
Changes since 1.3: +6 -13 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_dyn2aim.F,v 1.3 2001/08/15 13:50:43 jmc Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE AIM_DYN2AIM(
8 I bi,bj, myCurrentTime,myThid)
9 C /==========================================================\
10 C | S/R AIM_DYN2AIM |
11 C | o Map dynamics conforming arrays to AIM internal arrays. |
12 C |==========================================================|
13 C | Currently this routine transfers grid information to |
14 C | AIM. Other information needs to be included from |
15 C | aim_do_atmos_physics(). |
16 C \==========================================================/
17 IMPLICIT NONE
18
19 C == Global data ==
20 C-- size for MITgcm & Physics package :
21 #include "AIM_SIZE.h"
22
23 #include "EEPARAMS.h"
24 #include "PARAMS.h"
25 #include "GRID.h"
26 #include "DYNVARS.h"
27
28 #include "AIM_GRID.h"
29 #include "com_physvar.h"
30 #include "com_physcon.h"
31
32 C == Routine arguments ==
33 INTEGER bi, bj
34 _RL myCurrentTime
35 INTEGER myThid
36 CEndOfInterface
37
38 #ifdef ALLOW_AIM
39 C == Local variables ==
40 C Loop counters
41 INTEGER I, J, I2, K
42
43 C Legendre polynomials
44 DO J=1,NLAT
45 DO I=1,NLON
46 I2=J
47 I2=NLON*(J-1)+I
48 FMU(I2,1,myThid)=SIN(yC(I,J,bi,bj)*deg2rad)
49 FMU(I2,2,myThid)=1.5 _d 0*FMU(I2,1,myThid)**2-0.5 _d 0
50 ENDDO
51 ENDDO
52 C DO J=1,NLAT
53 C FMU(J,1,myThid)=SIN(yC(1,J,bi,bj)*deg2rad)
54 C FMU(J,2,myThid)=1.5 _d 0*FMU(J,1,myThid)**2-0.5 _d 0
55 C ENDDO
56
57 C Depth in levels
58 I2=0
59 DO J=1,NLAT
60 DO I=1,NLON
61 I2=I2+1
62 NLEVxy(I2,myThid) =0
63 NLEVxyU(I2,myThid)=0
64 NLEVxyV(I2,myThid)=0
65 DO k=1,NLEV
66 NLEVxy(I2,myThid) = NLEVxy(I2,myThid)
67 & + INT( maskC(I,J,K,bi,bj) )
68 NLEVxyU(I2,myThid)= NLEVxyU(I2,myThid)
69 & + INT( maskW(I,J,K,bi,bj) )
70 NLEVxyV(I2,myThid)= NLEVxyV(I2,myThid)
71 & + INT( maskS(I,J,K,bi,bj) )
72 ENDDO
73 ENDDO
74 ENDDO
75
76 #endif /* ALLOW_AIM */
77
78 RETURN
79 END

  ViewVC Help
Powered by ViewVC 1.1.22