/[MITgcm]/MITgcm/pkg/timeave/timeave_cumul_1k.F
ViewVC logotype

Annotation of /MITgcm/pkg/timeave/timeave_cumul_1k.F

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


Revision 1.3 - (hide annotations) (download)
Fri Dec 5 02:27:58 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint52l_pre, hrcube4, hrcube5, checkpoint57g_pre, checkpoint57b_post, checkpoint52d_pre, checkpoint57g_post, checkpoint56b_post, checkpoint52j_pre, checkpoint54d_post, checkpoint54e_post, checkpoint57d_post, checkpoint57i_post, checkpoint52k_post, checkpoint55, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint52f_post, checkpoint57n_post, checkpoint54f_post, checkpoint55a_post, checkpoint55i_post, checkpoint57l_post, checkpoint52i_pre, checkpoint57h_post, hrcube_2, hrcube_3, checkpoint55c_post, checkpoint52e_pre, checkpoint57f_post, checkpoint52e_post, checkpoint53d_post, checkpoint57a_post, checkpoint57h_pre, checkpoint54b_post, checkpoint52m_post, checkpoint55g_post, checkpoint52h_pre, checkpoint57c_post, hrcube_1, checkpoint55d_post, checkpoint53c_post, checkpoint55d_pre, checkpoint57c_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint57e_post, checkpoint55b_post, checkpoint53a_post, checkpoint55f_post, checkpoint52d_post, checkpoint53g_post, checkpoint57p_post, eckpoint57e_pre, checkpoint52i_post, checkpoint56a_post, checkpoint53f_post, checkpoint54a_pre, checkpoint53b_pre, checkpoint57h_done, checkpoint52j_post, checkpoint57j_post, checkpoint57f_pre, checkpoint52l_post, checkpoint52n_post, checkpoint56c_post, checkpoint57a_pre, checkpoint57o_post, checkpoint57k_post, checkpoint53b_post, checkpoint52f_pre, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post
Branch point for: netcdf-sm0
Changes since 1.2: +2 -2 lines
includes only "CPP_EEOPTIONS.h" (instead of TIMEAVE_OPTIONS.h) in basic
 S/R that only contains few header files (namely SIZE.h & EEPARAMS.h)

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/timeave/timeave_cumul_1k.F,v 1.2 2003/10/09 04:19:20 edhill Exp $
2 jmc 1.1 C $Name: $
3 jmc 1.3 #include "CPP_EEOPTIONS.h"
4 jmc 1.1
5     CStartofinterface
6     SUBROUTINE TIMEAVE_CUMUL_1K( fld, fldtave, deltaT,
7     & bi, bj, K, myThid )
8     C /==========================================================\
9     C | SUBROUTINE TIMEAVE_CUMUL_1K |
10     C | o Sum over time a single array and a single level |
11     C | (replace "timeaver_1fld_xyz" and use the same argments) |
12     C \==========================================================/
13     IMPLICIT NONE
14    
15     C == Global variables ===
16     #include "SIZE.h"
17     #include "EEPARAMS.h"
18    
19     C == Routine arguments ==
20     C myThid - Thread number for this instance of the routine.
21     C fld - Input Field
22     C fldtave - time averaged Field
23     _RL fld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
24     _RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
25     _RL deltaT
26     INTEGER bi, bj, K, myThid
27    
28     CEndofinterface
29    
30     C == Local variables ==
31     C i,j,k,bi,bj - Loop counters
32     INTEGER i, j
33    
34     C DO bj = myByLo(myThid), myByHi(myThid)
35     C DO bi = myBxLo(myThid), myBxHi(myThid)
36     C DO K=1,Nr
37     DO j=1,sNy
38     DO i=1,sNx
39     fldtave(i,j,K,bi,bj)=
40     & fldtave(i,j,K,bi,bj)+fld(i,j,K,bi,bj)*deltaT
41     ENDDO
42     ENDDO
43     C ENDDO
44     C ENDDO
45     C ENDDO
46    
47     RETURN
48     END

  ViewVC Help
Powered by ViewVC 1.1.22