1 |
C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_debug.F,v 1.5 2007/01/09 22:27:12 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
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 print passive tracers stats |
15 |
|
16 |
C !USES: =============================================================== |
17 |
IMPLICIT NONE |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PTRACERS_SIZE.h" |
21 |
#include "PTRACERS_PARAMS.h" |
22 |
#include "PTRACERS_FIELDS.h" |
23 |
|
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 |
#ifdef ALLOW_DEBUG |
33 |
|
34 |
C !LOCAL VARIABLES: ==================================================== |
35 |
C i,j,k,bi,bj,iTracer :: loop indices |
36 |
INTEGER iTracer |
37 |
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 |
& gpTrNm1(1-Olx,1-Oly,1,1,1,iTracer),strng,myThid) |
52 |
|
53 |
C end of tracer loop |
54 |
ENDDO |
55 |
|
56 |
#endif |
57 |
#endif /* ALLOW_PTRACERS */ |
58 |
|
59 |
RETURN |
60 |
END |