/[MITgcm]/MITgcm/pkg/cal/cal_time2dump.F
ViewVC logotype

Annotation of /MITgcm/pkg/cal/cal_time2dump.F

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


Revision 1.1 - (hide annotations) (download)
Wed Mar 22 21:05:37 2006 UTC (18 years, 2 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, checkpoint58u_post, checkpoint58w_post, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58d_post, checkpoint58c_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58m_post
Renaming cal_time2write.F to cal_time2dump.F to make it consistent with
its actual S/R name (seems nicer).
And add it to cal_ad_diff.list.

1 heimbach 1.1 C $Header: /u/gcmpack/MITgcm/pkg/cal/cal_time2write.F,v 1.1 2006/03/20 15:14:28 jmc Exp $
2     C $Name: $
3    
4     #include "CAL_OPTIONS.h"
5    
6     SUBROUTINE CAL_TIME2DUMP(
7     I freq, step,
8     U time2write,
9     I myTime, myIter, myThid )
10    
11     c ==================================================================
12     C-- Convert approximate months (30-31 days) and years (360-372 days)
13     C to exact calendar months and years.
14     c ==================================================================
15    
16     IMPLICIT NONE
17    
18     c == global variables ==
19    
20     #include "cal.h"
21    
22     c == routine arguments ==
23     _RL freq, step
24     LOGICAL time2write
25     _RL myTime
26     INTEGER myIter
27     INTEGER myThid
28    
29     c == local variables ==
30     INTEGER thisDate(4), prevDate(4)
31    
32     IF ( calendarDumps ) THEN
33     C- First determine calendar dates for this and previous time step.
34     CALL CAL_GETDATE( myIter ,myTime ,thisDate,myThid )
35     CALL CAL_GETDATE( myIter-1,myTime-step,prevDate,myThid )
36     C- Monthly Freq:
37     IF ( freq.GE.2592000. .AND. freq.LE.2678400. ) THEN
38     time2write = .FALSE.
39     IF ( (thisdate(1)-prevdate(1)).GT.50 ) time2write=.TRUE.
40     ENDIF
41     C- Yearly Freq:
42     IF ( freq.GE.31104000. .AND. freq.LE.31968000. ) THEN
43     time2write = .FALSE.
44     IF ( (thisdate(1)-prevdate(1)).GT.5000 ) time2write=.TRUE.
45     ENDIF
46     ENDIF
47    
48     RETURN
49     END

  ViewVC Help
Powered by ViewVC 1.1.22