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

Annotation of /MITgcm/pkg/ptracers/ptracers_switch_onoff.F

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


Revision 1.1 - (hide annotations) (download)
Thu Mar 8 17:17:55 2012 UTC (12 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64o, checkpoint64a, checkpoint63r, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64n, checkpoint64b, checkpoint63m, checkpoint64e, checkpoint63q, checkpoint64d, checkpoint64c, checkpoint64g, checkpoint64f, checkpoint63l, checkpoint63n, checkpoint65b, checkpoint65c, checkpoint63k, checkpoint65a, checkpoint64i, checkpoint63o, checkpoint63p, checkpoint64h, checkpoint63s, checkpoint64k, checkpoint64, checkpoint65, checkpoint64j, checkpoint64m, checkpoint64l
new S/R to switch on/off tracer time-stepping ; not available with AUTODIFF.

1 jmc 1.1 C $Header: /u/gcmpack/MITgcm/pkg/ptracers/ptracers_output.F,v 1.3 2007/11/05 18:48:04 jmc Exp $
2     C $Name: $
3    
4     #include "PTRACERS_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: PTRACERS_SWITCH_ONOFF
8    
9     C !INTERFACE:
10     SUBROUTINE PTRACERS_SWITCH_ONOFF(
11     I myTime, myIter, myThid )
12    
13     C !DESCRIPTION:
14     C Decide to switch on/off individual tracer time-stepping
15    
16     C !USES:
17     IMPLICIT NONE
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     c#include "PARAMS.h"
21     #include "PTRACERS_SIZE.h"
22     #include "PTRACERS_PARAMS.h"
23     #include "PTRACERS_START.h"
24    
25     C !INPUT PARAMETERS:
26     C myTime :: model time
27     C myIter :: time-step number
28     C myThid :: thread number
29     _RL myTime
30     INTEGER myIter
31     INTEGER myThid
32     CEOP
33    
34     #ifdef ALLOW_PTRACERS
35     C !LOCAL VARIABLES:
36     INTEGER iTracer
37    
38     IF ( .NOT.PTRACERS_startAllTrc ) THEN
39    
40     #ifdef ALLOW_AUTODIFF_TAMC
41     STOP 'ABNORMAL END: S/R PTRACERS_SWITCH_ONOFF'
42     #else /* ALLOW_AUTODIFF_TAMC */
43    
44     _BARRIER
45     _BEGIN_MASTER(myThid)
46    
47     DO iTracer=1,PTRACERS_numInUse
48     IF ( myTime.GE.PTRACERS_startStepFwd(iTracer) ) THEN
49     PTRACERS_StepFwd(iTracer) = .TRUE.
50     ELSE
51     PTRACERS_StepFwd(iTracer) = .FALSE.
52     ENDIF
53     ENDDO
54    
55     _END_MASTER(myThid)
56     _BARRIER
57    
58     #endif /* ALLOW_AUTODIFF_TAMC */
59    
60     ENDIF
61    
62     #endif /* ALLOW_PTRACERS */
63    
64     RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22