1 |
stephd |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_debug.F,v 1.1 2002/03/04 19:01:29 adcroft Exp $ |
2 |
|
|
C $Name: $ |
3 |
adcroft |
1.1 |
|
4 |
|
|
#include "PTRACERS_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CBOP |
7 |
|
|
C !ROUTINE: PTRACERS_DEBUG |
8 |
|
|
|
9 |
|
|
C !INTERFACE: ========================================================== |
10 |
|
|
SUBROUTINE PTRACERS_DEBUG( |
11 |
|
|
I myThid ) |
12 |
|
|
|
13 |
|
|
C !DESCRIPTION: |
14 |
|
|
C Calculates tendancy for passive tracers and integrates forward |
15 |
|
|
C in time. |
16 |
|
|
|
17 |
|
|
C !USES: =============================================================== |
18 |
|
|
IMPLICIT NONE |
19 |
|
|
#include "SIZE.h" |
20 |
|
|
#include "EEPARAMS.h" |
21 |
|
|
#include "PTRACERS.h" |
22 |
|
|
|
23 |
|
|
C !INPUT PARAMETERS: =================================================== |
24 |
|
|
C myThid :: thread number |
25 |
|
|
INTEGER myThid |
26 |
|
|
|
27 |
|
|
C !OUTPUT PARAMETERS: ================================================== |
28 |
|
|
C none |
29 |
|
|
|
30 |
|
|
#ifdef ALLOW_PTRACERS |
31 |
stephd |
1.2 |
#ifdef ALLOW_DEBUG |
32 |
adcroft |
1.1 |
|
33 |
|
|
C !LOCAL VARIABLES: ==================================================== |
34 |
|
|
C i,j,k,bi,bj,iTracer :: loop indices |
35 |
|
|
INTEGER i,j,iTracer |
36 |
|
|
CHARACTER*(9) strng |
37 |
|
|
CEOP |
38 |
|
|
|
39 |
|
|
C Loop over tracers |
40 |
|
|
DO iTracer=1,PTRACERS_num |
41 |
|
|
|
42 |
|
|
WRITE(strng(1:9),'(a7,i2.2)') 'PTRACER',iTracer |
43 |
|
|
CALL DEBUG_STATS_RL(Nr, |
44 |
|
|
& pTracer(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
45 |
|
|
WRITE(strng(1:9),'(a7,i2.2)') 'GTRACER',iTracer |
46 |
|
|
CALL DEBUG_STATS_RL(Nr, |
47 |
|
|
& gPtr(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
48 |
|
|
WRITE(strng(1:9),'(a7,i2.2)') 'GNm1TRC',iTracer |
49 |
|
|
CALL DEBUG_STATS_RL(Nr, |
50 |
|
|
& gPtrNm1(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
51 |
|
|
|
52 |
|
|
C end of tracer loop |
53 |
|
|
ENDDO |
54 |
|
|
|
55 |
stephd |
1.2 |
#endif |
56 |
adcroft |
1.1 |
#endif /* ALLOW_PTRACERS */ |
57 |
|
|
|
58 |
|
|
RETURN |
59 |
|
|
END |