/[MITgcm]/MITgcm_contrib/ocean_inversion_project/code/ptracers_forcing.F.test
ViewVC logotype

Annotation of /MITgcm_contrib/ocean_inversion_project/code/ptracers_forcing.F.test

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


Revision 1.1 - (hide annotations) (download)
Thu Sep 18 02:33:38 2003 UTC (22 years, 3 months ago) by dimitri
Branch: MAIN
Modifications and input files needed to compute tracer
Green's functions for Gruber's ocean inversion project.

1 dimitri 1.1 C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_forcing.F,v 1.2 2003/06/27 01:56:17 heimbach Exp $
2     C $Name: $
3    
4     #include "PTRACERS_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: PTRACERS_FORCING
8    
9     C !INTERFACE: ==========================================================
10     SUBROUTINE PTRACERS_FORCING(
11     I bi,bj,k,iTracer,
12     U gPtracer,
13     I myIter,myTime,myThid )
14    
15     C !DESCRIPTION:
16     C Adds sources and sinks of passive tracers to the tendancy arrays
17    
18     C !USES: ===============================================================
19     IMPLICIT NONE
20     #include "SIZE.h"
21     #include "EEPARAMS.h"
22     #include "PTRACERS.h"
23     #include "PARAMS.h"
24     #include "FFIELDS.h"
25     #include "DYNVARS.h"
26     #include "GRID.h"
27    
28     C !INPUT PARAMETERS: ===================================================
29     C bi,bj :: tile indices
30     C k :: vertical level number
31     C iTracer :: passive tracer index
32     C gPtracer :: the tendancy array
33     C myIter :: time-step number
34     C myTime :: model time
35     C myThid :: thread number
36     INTEGER bi,bj,k,iTracer
37     _RL gPtracer(1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr,nSx,nSy)
38     INTEGER myIter
39     _RL myTime
40     INTEGER myThid
41    
42     C !OUTPUT PARAMETERS: ==================================================
43     C gPtracer :: updates tendancy array
44    
45     #ifdef ALLOW_PTRACERS
46    
47     C !LOCAL VARIABLES: ====================================================
48     C i,j :: loop indices
49     INTEGER i,j
50     CEOP
51    
52     C Example of how to add forcing at the surface
53     IF (k.EQ.1) THEN
54     DO j=1-Oly,sNy+Oly
55     DO i=1-Olx,sNx+Olx
56    
57     C Here, we'll copy the exact forcing used for salinity to allow us
58     C to test everything is working.
59     gPtracer(i,j,k,bi,bj)=gPtracer(i,j,k,bi,bj)
60     & +maskC(i,j,k,bi,bj)*surfaceTendencyS(i,j,bi,bj)
61    
62     ENDDO
63     ENDDO
64     ENDIF
65    
66     #endif /* ALLOW_PTRACERS */
67    
68     RETURN
69     END

  ViewVC Help
Powered by ViewVC 1.1.22