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

Contents of /MITgcm/pkg/timeave/timeave_norma_1k.F

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


Revision 1.2 - (show annotations) (download)
Wed Oct 2 15:47:17 2002 UTC (21 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47e_post, checkpoint46l_post, checkpoint47c_post, checkpoint50c_post, checkpoint48e_post, checkpoint50g_post, checkpoint48c_post, checkpoint48i_post, checkpoint46l_pre, checkpoint50d_pre, checkpoint51, checkpoint50d_post, checkpoint50b_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint47d_post, checkpoint48d_post, checkpoint48f_post, checkpoint46j_pre, checkpoint47d_pre, checkpoint48h_post, checkpoint51b_pre, checkpoint47g_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint47a_post, branchpoint-genmake2, checkpoint51b_post, checkpoint47b_post, checkpoint46m_post, checkpoint50c_pre, checkpoint51c_post, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint48a_post, checkpoint47j_post, branch-exfmods-tag, checkpoint47f_post, checkpoint50e_post, checkpoint51e_post, checkpoint47, checkpoint48, checkpoint49, checkpoint50, checkpoint51f_pre, checkpoint47h_post, checkpoint51g_post, checkpoint50b_post, checkpoint51a_post, checkpoint48g_post
Branch point for: branch-exfmods-curt, branch-genmake2
Changes since 1.1: +2 -2 lines
correct the name of the subroutine

1 C $Header: /u/gcmpack/MITgcm/pkg/timeave/timeave_norma_1k.F,v 1.1 2001/03/06 15:47:31 jmc Exp $
2 C $Name: $
3 #include "CPP_OPTIONS.h"
4
5 CStartofinterface
6 SUBROUTINE TIMEAVE_NORMA_1K( fldtave, timeave,
7 & bi, bj, K, myThid )
8 C /==========================================================\
9 C | SUBROUTINE TIMEAVE_NORMA_1K |
10 C | o apply to 1 level of a 3D array : Normalize by |
11 C | cumulated time |
12 C | (replace "timeaver_final_XYZ" and use the same argments) |
13 C \==========================================================/
14 IMPLICIT NONE
15
16 C == Global variables ===
17 #include "SIZE.h"
18 #include "EEPARAMS.h"
19
20 C == Routine arguments ==
21 C myThid - Thread number for this instance of the routine.
22 C timeave - time averaged
23 C fldtave - time averaged Field
24 INTEGER bi, bj, K, myThid
25 _RL fldtave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
26 _RL timeave(Nr,nSx,nSy)
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 IF ( timeave(k,bi,bj) .NE. 0. ) THEN
40 fldtave(i,j,k,bi,bj) = fldtave(i,j,k,bi,bj) /
41 & timeave(k,bi,bj)
42 ENDIF
43 ENDDO
44 ENDDO
45 C ENDDO
46 C ENDDO
47 C ENDDO
48
49 RETURN
50 END

  ViewVC Help
Powered by ViewVC 1.1.22