/[MITgcm]/MITgcm/pkg/ptracers/ptracers_impldiff.F
ViewVC logotype

Contents of /MITgcm/pkg/ptracers/ptracers_impldiff.F

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


Revision 1.1 - (show annotations) (download)
Mon Mar 4 19:01:29 2002 UTC (22 years, 3 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint48f_post, checkpoint47j_post, checkpoint48d_pre, branch-exfmods-tag, checkpoint47e_post, checkpoint44h_pre, checkpoint47i_post, checkpoint48i_post, checkpoint46l_post, checkpoint46j_post, checkpoint47f_post, checkpoint47c_post, checkpoint50e_post, checkpoint50c_post, checkpoint46i_post, checkpoint47d_post, checkpoint47a_post, checkpoint46f_post, checkpoint46d_pre, checkpoint48e_post, checkpoint46e_post, checkpoint48h_post, checkpoint50c_pre, checkpoint46c_post, checkpoint44g_post, checkpoint46h_pre, checkpoint44h_post, checkpoint46k_post, checkpoint46e_pre, checkpoint50d_pre, checkpoint45d_post, checkpoint46j_pre, checkpoint45b_post, checkpoint46b_pre, checkpoint47h_post, checkpoint48c_post, checkpoint46, checkpoint46c_pre, checkpoint47d_pre, checkpoint45, checkpoint48, checkpoint49, checkpoint44f_post, checkpoint47b_post, checkpoint48d_post, checkpoint48g_post, checkpoint46l_pre, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint46g_pre, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46m_post, checkpoint48a_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint50b_pre, checkpoint46b_post, checkpoint46d_post, checkpoint48b_post, checkpoint50b_post, checkpoint46g_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint48c_pre, checkpoint47, checkpoint50h_post, checkpoint51a_post, checkpoint46h_post, checkpoint50e_pre, checkpoint50i_post
Branch point for: ecco-branch, branch-exfmods-curt
Added PTRACERS package

This allows an arbitrary number of passive tracers to be integrated
forward simultaneously with the dynamicaly model.
 + Implemented so far:
    - basic forward algorithm (time-stepping, advection, diffusion, convection)
    - I/O and checkpointing
    - GM/Redi  *but*  using the GM/Redi coefficient of Salt
 + Not implemented so far:
    - KPP
    - OBCS
 + No specific example supplied (yet) but global_ocean.90x40x15 has the
   necessary data.ptracer file. Simply use -enable=ptracers and uncomment
   line in data.pkg. PTRACER01 then reproduces Salt exactly.
 + This package is disabled by default since it increases storage.

1 C $Header: $
2 C $Name: $
3
4 #include "PTRACERS_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: PTRACERS_IMPLDIFF
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE PTRACERS_IMPLDIFF( bi,bj,KappaR,myThid )
11
12 C !DESCRIPTION:
13 C Calls the implicit vertical diffusion routine for each passive
14 C tracer.
15
16 C !USES: ===============================================================
17 IMPLICIT NONE
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PTRACERS.h"
21 #include "PARAMS.h"
22 #include "GRID.h"
23
24 C !INPUT PARAMETERS: ===================================================
25 C bi,bj :: tile indices
26 C KappaR :: vertical diffusion coefficient
27 C myThid :: thread number
28 INTEGER bi,bj
29 _RL KappaR(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr)
30 INTEGER myThid
31
32 C !OUTPUT PARAMETERS: ==================================================
33 C none
34
35 #ifdef ALLOW_PTRACERS
36
37 C !LOCAL VARIABLES: ====================================================
38 C iTracer :: tracer index
39 INTEGER iTracer
40 INTEGER iMin,iMax,jMin,jMax
41 CEOP
42
43 iMin=0
44 iMax=sNx+1
45 jMin=0
46 jMax=sNy+1
47
48 C Loop over tracers
49 DO iTracer=1,PTRACERS_numInUse
50
51 CALL IMPLDIFF(
52 I bi, bj, iMin, iMax, jMin, jMax,
53 I deltaTtracer, KappaR, recip_HFacC,
54 U gPtr(1-Olx,1-Oly,1,bi,bj,iTracer),
55 I myThid )
56
57 C End of tracer loop
58 ENDDO
59
60 #endif /* ALLOW_PTRACERS */
61
62 RETURN
63 END

  ViewVC Help
Powered by ViewVC 1.1.22