1 |
C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_debug.F,v 1.7 2014/08/15 19:18: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 iTracer :: tracer index |
36 |
INTEGER iTracer |
37 |
CHARACTER*(12) strng |
38 |
CEOP |
39 |
|
40 |
C Loop over tracers |
41 |
DO iTracer=1,PTRACERS_num |
42 |
|
43 |
WRITE(strng,'(A8,I4.4)') 'PTRACER.', iTracer |
44 |
CALL DEBUG_STATS_RL( Nr, pTracer(1-OLx,1-OLy,1,1,1,iTracer), |
45 |
& strng, myThid ) |
46 |
WRITE(strng,'(A8,I4.4)') 'GNm1TRC.', iTracer |
47 |
CALL DEBUG_STATS_RL( Nr, gpTrNm1(1-OLx,1-OLy,1,1,1,iTracer), |
48 |
& strng, myThid ) |
49 |
|
50 |
C end of tracer loop |
51 |
ENDDO |
52 |
|
53 |
#endif /* ALLOW_DEBUG */ |
54 |
#endif /* ALLOW_PTRACERS */ |
55 |
|
56 |
RETURN |
57 |
END |