/[MITgcm]/MITgcm/pkg/thsice/thsice_get_velocity.F
ViewVC logotype

Contents of /MITgcm/pkg/thsice/thsice_get_velocity.F

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


Revision 1.3 - (show annotations) (download)
Tue Mar 6 15:37:24 2012 UTC (12 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63k, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.2: +2 -2 lines
add SEAICE_SIZE.h anywhere SEAICE.h is included

1 C $Header: /u/gcmpack/MITgcm/pkg/thsice/thsice_get_velocity.F,v 1.2 2009/06/24 08:02:02 mlosch Exp $
2 C $Name: $
3
4 #include "THSICE_OPTIONS.h"
5 #ifdef ALLOW_SEAICE
6 # include "SEAICE_OPTIONS.h"
7 #endif /* ALLOW_SEAICE */
8
9
10 CBOP
11 C !ROUTINE: THSICE_GET_VELOCITY
12
13 C !INTERFACE: ==========================================================
14 SUBROUTINE THSICE_GET_VELOCITY(
15 O uLoc, vLoc,
16 I bi, bj, myTime, myIter, myThid )
17
18 C !DESCRIPTION: \bv
19 C *===========================================================*
20 C | SUBROUTINE THSICE_GET_VELOCITY
21 C | o load seaice velocity from pkg/seaice common block
22 C *===========================================================*
23 C \ev
24
25 C !USES: ===============================================================
26 IMPLICIT NONE
27
28 C === Global variables ===
29
30 #include "SIZE.h"
31 #include "EEPARAMS.h"
32 #include "PARAMS.h"
33 c#include "THSICE_SIZE.h"
34 c#include "THSICE_PARAMS.h"
35 #ifdef ALLOW_SEAICE
36 # include "SEAICE_SIZE.h"
37 # include "SEAICE.h"
38 #endif /* ALLOW_SEAICE */
39
40 C !INPUT PARAMETERS: ===================================================
41 C === Routine arguments ===
42 C uLoc/vLoc :: current ice velocity on C-grid [m/s]
43 C bi,bj :: Tile indices
44 C myTime :: Current time in simulation (s)
45 C myIter :: Current iteration number
46 C myThid :: My Thread Id number
47 _RL uLoc(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
48 _RL vLoc(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
49 INTEGER bi,bj
50 _RL myTime
51 INTEGER myIter
52 INTEGER myThid
53
54 #ifdef ALLOW_THSICE
55 C !LOCAL VARIABLES: ====================================================
56 C === Local variables ===
57 C i,j, :: Loop counters
58 INTEGER i, j
59 CEOP
60
61 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
62
63
64 #ifdef ALLOW_SEAICE
65 IF ( useSEAICE ) THEN
66 DO j=1-OLy,sNy+OLy
67 DO i=1-OLx,sNx+OLx
68 uLoc(i,j) = UICE(i,j,bi,bj)
69 vLoc(i,j) = VICE(i,j,bi,bj)
70 ENDDO
71 ENDDO
72 ELSE
73 #else /* ALLOW_SEAICE */
74 IF ( .TRUE. ) THEN
75 #endif /* ALLOW_SEAICE */
76 C- set ice velocity to zero
77 DO j=1-OLy,sNy+OLy
78 DO i=1-OLx,sNx+OLx
79 uLoc(i,j) = 0.
80 vLoc(i,j) = 0.
81 ENDDO
82 ENDDO
83 ENDIF
84
85 #endif /* ALLOW_THSICE */
86
87 RETURN
88 END

  ViewVC Help
Powered by ViewVC 1.1.22