/[MITgcm]/MITgcm/model/src/ini_vel.F
ViewVC logotype

Annotation of /MITgcm/model/src/ini_vel.F

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


Revision 1.6 - (hide annotations) (download)
Mon Oct 7 16:24:45 2002 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47e_post, checkpoint57m_post, checkpoint52l_pre, hrcube4, hrcube5, checkpoint46l_post, checkpoint57g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint52d_pre, checkpoint57g_post, checkpoint48e_post, checkpoint56b_post, checkpoint50c_pre, checkpoint57y_post, checkpoint52j_pre, checkpoint51o_pre, checkpoint54d_post, checkpoint54e_post, checkpoint51l_post, checkpoint48i_post, checkpoint57r_post, checkpoint46l_pre, checkpoint57d_post, checkpoint57i_post, checkpoint52l_post, checkpoint52k_post, checkpoint58, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint58f_post, checkpoint52f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint50b_pre, checkpoint57z_post, checkpoint54f_post, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint51n_post, checkpoint55i_post, checkpoint58m_post, checkpoint57l_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint47a_post, checkpoint57t_post, checkpoint55c_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint52e_pre, checkpoint57v_post, checkpoint57f_post, checkpoint52e_post, checkpoint51n_pre, checkpoint47d_post, checkpoint53d_post, checkpoint57a_post, checkpoint48d_post, checkpoint57h_pre, checkpoint48f_post, checkpoint52b_pre, checkpoint54b_post, checkpoint57h_post, checkpoint51l_pre, checkpoint52m_post, checkpoint57y_pre, checkpoint55g_post, checkpoint48h_post, checkpoint51q_post, checkpoint51b_pre, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, checkpoint48a_post, checkpoint57c_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52f_pre, checkpoint55d_post, checkpoint58e_post, checkpoint47j_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint55j_post, branch-exfmods-tag, branchpoint-genmake2, checkpoint54a_post, checkpoint55h_post, checkpoint51r_post, checkpoint48c_post, checkpoint51i_post, checkpoint57e_post, checkpoint55b_post, checkpoint51b_post, checkpoint51c_post, checkpoint53a_post, checkpoint47b_post, checkpoint55f_post, checkpoint52d_post, checkpoint53g_post, checkpoint46m_post, checkpoint57p_post, checkpint57u_post, checkpoint50g_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint52a_pre, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint56a_post, checkpoint58l_post, checkpoint53f_post, checkpoint57h_done, checkpoint52j_post, checkpoint47f_post, checkpoint50e_post, checkpoint57j_post, checkpoint57f_pre, checkpoint58g_post, branch-netcdf, checkpoint50d_pre, checkpoint52n_post, checkpoint53b_pre, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint51e_post, checkpoint57a_pre, checkpoint55a_post, checkpoint47, checkpoint48, checkpoint49, checkpoint57o_post, checkpoint51o_post, checkpoint57k_post, checkpoint51f_pre, checkpoint48g_post, checkpoint53b_post, checkpoint47h_post, checkpoint52a_post, checkpoint57w_post, checkpoint58i_post, checkpoint51g_post, ecco_c52_e35, checkpoint57x_post, checkpoint50b_post, checkpoint58c_post, checkpoint51m_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
Changes since 1.5: +3 -9 lines
* split calc_exact_eta in 2 S/R : integr_continuity & update_etaH
* move wVel computation at the end of the time step, in S/R integr_continuity
* create specific S/R to exchange T,S before DYNAMICS (for stagger time step)
* update timeave pkg for wVel diagnostic ; put convertEmP2rUnit in PARAMS.h

1 jmc 1.6 C $Header: /u/gcmpack/MITgcm/model/src/ini_vel.F,v 1.5 2001/09/26 18:09:16 cnh Exp $
2 adcroft 1.4 C $Name: $
3 adcroft 1.2
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.5 CBOP
7     C !ROUTINE: INI_VEL
8     C !INTERFACE:
9 adcroft 1.2 SUBROUTINE INI_VEL( myThid )
10    
11 cnh 1.5 C !DESCRIPTION: \bv
12     C *=================================================================
13     C | SUBROUTINE INI_VEL
14 jmc 1.6 C | o Initialize flow field (either to zero or from input files)
15 cnh 1.5 C *=================================================================
16     C \ev
17 adcroft 1.2
18 cnh 1.5 C !USES:
19     IMPLICIT NONE
20 adcroft 1.2 C === Global variables ===
21     #include "SIZE.h"
22     #include "EEPARAMS.h"
23     #include "PARAMS.h"
24     #include "GRID.h"
25     #include "DYNVARS.h"
26    
27 cnh 1.5 C !INPUT/OUTPUT PARAMETERS:
28 adcroft 1.2 C == Routine arguments ==
29 jmc 1.6 C myThid - Number of this instance of INI_VEL
30 adcroft 1.2 INTEGER myThid
31    
32 cnh 1.5 C !LOCAL VARIABLES:
33 adcroft 1.2 C == Local variables ==
34     C bi,bj,i,j,k - Loop counters
35     INTEGER bi,bj,i,j,k
36 cnh 1.5 CEOP
37 adcroft 1.2
38     C-- Initialise velocity fields to zero
39     C
40     C If you want to specify an analytic initial state for the flow
41     C field then customize the following section of code.
42     C It is, however, often easier to generate initial conditions
43     C off-line and read them from input files...
44     C
45     DO bj = myByLo(myThid), myByHi(myThid)
46     DO bi = myBxLo(myThid), myBxHi(myThid)
47     DO k=1,Nr
48     DO j=1-Oly,sNy+Oly
49     DO i=1-Olx,sNx+Olx
50 heimbach 1.3 uVel(i,j,k,bi,bj)=0. _d 0
51     vVel(i,j,k,bi,bj)=0. _d 0
52 adcroft 1.2 ENDDO
53     ENDDO
54     ENDDO
55     ENDDO
56     ENDDO
57    
58     C Read an initial state for each component if required
59     IF (uVelInitFile .NE. ' ') THEN
60     _BEGIN_MASTER( myThid )
61     CALL READ_FLD_XYZ_RL( uVelInitFile, ' ', uVel, 0, myThid )
62     _END_MASTER(myThid)
63     c _EXCH_XYZ_R8(uVel , myThid )
64     ENDIF
65    
66     IF (vVelInitFile .NE. ' ') THEN
67     _BEGIN_MASTER( myThid )
68     CALL READ_FLD_XYZ_RL( vVelInitFile, ' ', vVel, 0, myThid )
69     _END_MASTER(myThid)
70     c _EXCH_XYZ_R8(vVel , myThid )
71     ENDIF
72    
73 adcroft 1.4 c IF (uVelInitFile .NE. ' ' .OR. vVelInitFile .NE. ' ') THEN
74     CALL EXCH_UV_XYZ_RL(uVel,vVel,.TRUE.,myThid)
75     c ENDIF
76    
77 adcroft 1.2 DO bj = myByLo(myThid), myByHi(myThid)
78     DO bi = myBxLo(myThid), myBxHi(myThid)
79     DO k=1,Nr
80     DO j=1-Oly,sNy+Oly
81     DO i=1-Olx,sNx+Olx
82     uVel(i,j,k,bi,bj)=uVel(i,j,k,bi,bj)*_maskW(i,j,k,bi,bj)
83     vVel(i,j,k,bi,bj)=vVel(i,j,k,bi,bj)*_maskS(i,j,k,bi,bj)
84     ENDDO
85     ENDDO
86     ENDDO
87     ENDDO
88     ENDDO
89    
90     RETURN
91     END

  ViewVC Help
Powered by ViewVC 1.1.22