/[MITgcm]/MITgcm/pkg/salt_plume/salt_plume_forcing_surf.F
ViewVC logotype

Contents of /MITgcm/pkg/salt_plume/salt_plume_forcing_surf.F

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


Revision 1.4 - (show annotations) (download)
Tue Jul 6 00:14:29 2010 UTC (13 years, 11 months ago) by dimitri
Branch: MAIN
CVS Tags: 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, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint63, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.3: +1 -10 lines
Fixing bug in treatment of SaltPlumeSouthernOcean
Flag should be applied prior to modifying surfaceForcingS
Moved SaltPlumeSouthernOcean to seaice_growth.F

1 C $Header: /u/gcmpack/MITgcm/pkg/salt_plume/salt_plume_forcing_surf.F,v 1.3 2009/06/15 23:42:46 dimitri Exp $
2 C $Name: $
3
4 #include "SALT_PLUME_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: SALT_PLUME_FORCING_SURF
8 C !INTERFACE:
9 SUBROUTINE SALT_PLUME_FORCING_SURF(
10 I bi, bj, iMin, iMax, jMin, jMax,
11 I myTime,myIter,myThid )
12
13 C !DESCRIPTION: \bv
14 C *==========================================================*
15 C | S/R SALT_PLUME_FORCING_SURF
16 C | o saltPlume is the amount of salt rejected by ice while freezing;
17 C | it is here subtracted from surfaceForcingS and will be redistributed
18 C | to multiple vertical levels later on as per Duffy et al. (GRL 1999)
19 C *==========================================================*
20 C \ev
21
22 C !USES:
23 IMPLICIT NONE
24 C == Global variables ==
25 #include "SIZE.h"
26 #include "EEPARAMS.h"
27 #include "PARAMS.h"
28 #include "GRID.h"
29 #include "FFIELDS.h"
30 #include "DYNVARS.h"
31 #include "SALT_PLUME.h"
32
33 C !INPUT PARAMETERS:
34 C bi,bj :: tile indices
35 C myTime :: model time
36 C myIter :: time-step number
37 C myThid :: thread number
38 INTEGER bi, bj, iMin, iMax, jMin, jMax
39 _RL myTime
40 INTEGER myIter
41 INTEGER myThid
42 CEOP
43
44 #ifdef ALLOW_SALT_PLUME
45
46 C !LOCAL VARIABLES:
47 C i,j :: loop indices
48 C ks :: surface level index
49 INTEGER i, j, ks
50
51 IF ( usingPCoords ) THEN
52 ks = Nr
53 ELSE
54 ks = 1
55 ENDIF
56
57 DO j = jMin, jMax
58 DO i = iMin, iMax
59 surfaceForcingS(i,j,bi,bj) = surfaceForcingS(i,j,bi,bj)
60 & - saltPlumeFlux(i,j,bi,bj) * mass2rUnit
61 ENDDO
62 ENDDO
63
64 #endif /* ALLOW_SALT_PLUME */
65
66 RETURN
67 END

  ViewVC Help
Powered by ViewVC 1.1.22