/[MITgcm]/MITgcm/pkg/flt/flt_down.F
ViewVC logotype

Contents of /MITgcm/pkg/flt/flt_down.F

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


Revision 1.5 - (show annotations) (download)
Wed Dec 22 21:25:18 2010 UTC (13 years, 4 months ago) by jahn
Branch: MAIN
CVS Tags: checkpoint62v, checkpoint62u, checkpoint62t, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint63g, checkpoint64, checkpoint65, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint65o, 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, HEAD
Changes since 1.4: +2 -1 lines
add FLT_SIZE.h

1 C $Header: /u/gcmpack/MITgcm/pkg/flt/flt_down.F,v 1.4 2009/02/01 20:48:50 jmc Exp $
2 C $Name: $
3
4 #include "FLT_OPTIONS.h"
5
6 SUBROUTINE FLT_DOWN (
7 I myTime, myIter, myThid )
8
9 C ==================================================================
10 C SUBROUTINE FLT_DOWN
11 C ==================================================================
12 C o This routine moves particles vertical from the surface to
13 C the target depth
14 C ==================================================================
15
16 C !USES:
17 IMPLICIT NONE
18
19 C == global variables ==
20 #include "EEPARAMS.h"
21 #include "SIZE.h"
22 #include "FLT_SIZE.h"
23 #include "FLT.h"
24
25 C == routine arguments ==
26 _RL myTime
27 INTEGER myIter, myThid
28
29 C == local variables ==
30 INTEGER bi, bj
31 INTEGER ip
32
33 C == end of interface ==
34
35 DO bj=myByLo(myThid),myByHi(myThid)
36 DO bi=myBxLo(myThid),myBxHi(myThid)
37
38 DO ip=1,npart_tile(bi,bj)
39
40 IF (
41 & ( myTime.GE.tstart(ip,bi,bj))
42 & .AND.
43 & ( tend(ip,bi,bj).EQ.-1. .OR. myTime.LE. tend(ip,bi,bj))
44 & .AND.
45 & (kpart(ip,bi,bj) .LE. flt_surf)
46 & .AND.
47 & (iup(ip,bi,bj) .GT. 0.)
48 & ) THEN
49
50 c IF (tstart(ip,bi,bj) .NE. -1. .AND.
51 c & myTime .GE. tstart(ip,bi,bj) .AND.
52 c & myTime .LE. tend(ip,bi,bj) .AND.
53 c & kpart(ip,bi,bj) .EQ. flt_surf .AND.
54 c & iup(ip,bi,bj) .GT. 0.) THEN
55
56 C move float to the target depth
57
58 IF (mod(myTime,iup(ip,bi,bj)).EQ.itop(ip,bi,bj))
59 & kpart(ip,bi,bj) = kfloat(ip,bi,bj)
60
61 ENDIF
62 ENDDO
63
64 ENDDO
65 ENDDO
66
67 RETURN
68 END
69

  ViewVC Help
Powered by ViewVC 1.1.22