1 |
jmc |
1.6 |
C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_debug.F,v 1.5 2007/01/09 22:27:12 jmc Exp $ |
2 |
stephd |
1.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 |
jmc |
1.5 |
C print passive tracers stats |
15 |
adcroft |
1.1 |
|
16 |
|
|
C !USES: =============================================================== |
17 |
|
|
IMPLICIT NONE |
18 |
|
|
#include "SIZE.h" |
19 |
|
|
#include "EEPARAMS.h" |
20 |
jmc |
1.3 |
#include "PTRACERS_SIZE.h" |
21 |
jmc |
1.6 |
#include "PTRACERS_PARAMS.h" |
22 |
|
|
#include "PTRACERS_FIELDS.h" |
23 |
adcroft |
1.1 |
|
24 |
|
|
C !INPUT PARAMETERS: =================================================== |
25 |
|
|
C myThid :: thread number |
26 |
|
|
INTEGER myThid |
27 |
|
|
|
28 |
|
|
C !OUTPUT PARAMETERS: ================================================== |
29 |
|
|
C none |
30 |
|
|
|
31 |
|
|
#ifdef ALLOW_PTRACERS |
32 |
stephd |
1.2 |
#ifdef ALLOW_DEBUG |
33 |
adcroft |
1.1 |
|
34 |
|
|
C !LOCAL VARIABLES: ==================================================== |
35 |
|
|
C i,j,k,bi,bj,iTracer :: loop indices |
36 |
jmc |
1.4 |
INTEGER iTracer |
37 |
adcroft |
1.1 |
CHARACTER*(9) strng |
38 |
|
|
CEOP |
39 |
|
|
|
40 |
|
|
C Loop over tracers |
41 |
|
|
DO iTracer=1,PTRACERS_num |
42 |
|
|
|
43 |
|
|
WRITE(strng(1:9),'(a7,i2.2)') 'PTRACER',iTracer |
44 |
|
|
CALL DEBUG_STATS_RL(Nr, |
45 |
|
|
& pTracer(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
46 |
|
|
WRITE(strng(1:9),'(a7,i2.2)') 'GTRACER',iTracer |
47 |
|
|
CALL DEBUG_STATS_RL(Nr, |
48 |
|
|
& gPtr(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
49 |
|
|
WRITE(strng(1:9),'(a7,i2.2)') 'GNm1TRC',iTracer |
50 |
|
|
CALL DEBUG_STATS_RL(Nr, |
51 |
jmc |
1.6 |
& gpTrNm1(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
52 |
adcroft |
1.1 |
|
53 |
|
|
C end of tracer loop |
54 |
|
|
ENDDO |
55 |
|
|
|
56 |
stephd |
1.2 |
#endif |
57 |
adcroft |
1.1 |
#endif /* ALLOW_PTRACERS */ |
58 |
|
|
|
59 |
|
|
RETURN |
60 |
|
|
END |