/[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.1 - (show annotations) (download)
Tue Mar 6 15:47:31 2001 UTC (23 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: ecco_c44_e19, checkpoint46g_pre, release1_p13_pre, checkpoint46f_post, checkpoint46b_post, checkpoint43a-release1mods, checkpoint44g_post, release1_p13, checkpoint40pre3, checkpoint40pre2, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, chkpt44d_post, release1_p8, release1_p9, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, release1_p7, checkpoint44e_pre, release1_b1, checkpoint43, checkpoint38, release1_chkpt44d_post, icebear5, icebear4, icebear3, icebear2, checkpoint46d_pre, release1-branch_tutorials, checkpoint45d_post, chkpt44a_post, checkpoint44h_pre, checkpoint40pre4, checkpoint46a_post, checkpoint46b_pre, chkpt44c_pre, checkpoint45a_post, checkpoint44e_post, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, release1_p12, release1_p10, release1_p11, release1_p16, release1_p17, release1_p14, release1_p15, pre38tag1, checkpoint46e_pre, checkpoint45b_post, release1-branch-end, c37_adj, release1_final_v1, release1_p12_pre, checkpoint46c_pre, checkpoint44f_post, checkpoint44b_post, checkpoint46h_pre, checkpoint46a_pre, checkpoint45c_post, ecco_ice2, ecco_ice1, checkpoint44h_post, pre38-close, checkpoint46g_post, checkpoint39, checkpoint37, checkpoint46i_post, ecco_c44_e25, checkpoint40pre5, chkpt44a_pre, ecco_c44_e22, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, checkpoint46c_post, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5, checkpoint46e_post, release1_beta1, checkpoint44b_pre, checkpoint42, checkpoint40, checkpoint41, checkpoint46, checkpoint44, checkpoint45, checkpoint46h_post, chkpt44c_post, checkpoint44f_pre, checkpoint46d_post, release1-branch_branchpoint
Branch point for: c24_e25_ice, release1_coupled, release1_final, release1-branch, release1, ecco-branch, release1_50yr, icebear, pre38
in the new package "timeave", replaces old diags/src/timeaver_final_xyz.F

1 C $Header: /u/gcmpack/models/MITgcmUV/diags/src/timeaver_final_xyz.F,v 1.9 2001/02/15 19:01:39 jmc Exp $
2 C $Name: $
3 #include "CPP_OPTIONS.h"
4
5 CStartofinterface
6 SUBROUTINE TIMEAVER_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