/[MITgcm]/MITgcm/pkg/exf/exf_filter_rl.F
ViewVC logotype

Annotation of /MITgcm/pkg/exf/exf_filter_rl.F

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


Revision 1.1 - (hide annotations) (download)
Mon May 14 22:08:40 2001 UTC (23 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint44e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint46f_post, checkpoint44f_post, checkpoint46b_post, checkpoint43a-release1mods, checkpoint40pre3, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, checkpoint46l_pre, chkpt44d_post, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, checkpoint44e_pre, release1_b1, checkpoint43, release1_chkpt44d_post, checkpoint46d_pre, checkpoint40pre2, release1-branch_tutorials, checkpoint45d_post, checkpoint46j_pre, chkpt44a_post, checkpoint44h_pre, checkpoint40pre4, checkpoint46a_post, checkpoint46j_post, checkpoint46k_post, chkpt44c_pre, checkpoint45a_post, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, checkpoint44g_post, checkpoint46e_pre, checkpoint45b_post, checkpoint46b_pre, release1-branch-end, release1_final_v1, checkpoint46c_pre, checkpoint46, checkpoint44b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint39, ecco_c44_e22, checkpoint40pre5, chkpt44a_pre, checkpoint46i_post, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, 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, checkpoint44, checkpoint45, checkpoint46h_post, chkpt44c_post, checkpoint44f_pre, checkpoint46d_post, release1-branch_branchpoint
Branch point for: release1_final, release1-branch, release1, ecco-branch, release1_coupled
Added external forcing package.
Not presently supported by mitgcm, i.e. disabled by default.

1 heimbach 1.1 c $Header: /u/gcmpack/development/heimbach/ecco_env/pkg/exf/exf_filter_rl.F,v 1.1 2001/02/02 19:43:46 heimbach Exp $
2    
3     #include "EXF_CPPOPTIONS.h"
4    
5     subroutine exf_filter_rl(
6     I arr,
7     I ckind,
8     I mythid
9     & )
10    
11     c ==================================================================
12     c SUBROUTINE exf_filter_rl
13     c ==================================================================
14     c
15     c o Read a flux record for external forcing.
16     c
17     c started: Ralf.Giering@FastOpt.de 24-Mai-2000
18     c
19     c ==================================================================
20     c SUBROUTINE exf_filter_rl
21     c ==================================================================
22    
23     implicit none
24    
25     c == global variables ==
26    
27     #include "EEPARAMS.h"
28     #include "SIZE.h"
29     #include "GRID.h"
30     #include "exf_constants.h"
31     #include "exfa.h"
32     #include "exfa_param.h"
33    
34     c == routine arguments ==
35    
36     _RL arr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
37     character*1 ckind
38     integer mythid
39    
40     c == local variables ==
41    
42     integer bi,bj
43     integer i,j
44     integer itlo,ithi
45     integer jtlo,jthi
46    
47     c == end of interface ==
48    
49     jtlo = mybylo(mythid)
50     jthi = mybyhi(mythid)
51     itlo = mybxlo(mythid)
52     ithi = mybxhi(mythid)
53    
54     c filter forcing field array
55     do bj = jtlo,jthi
56     do bi = itlo,ithi
57    
58     c Set undefined values to zero.
59     crg not necessary and
60     crg would require additional intermediate results in adjoint
61     crg do j = 1,sny
62     crg do i = 1,snx
63     crg if (arr(i,j,bi,bj) .le. exf_undef) then
64     crg arr(i,j,bi,bj) = 0. _d 0
65     crg endif
66     crg enddo
67     crg enddo
68    
69     c Set land points to zero
70     if (ckind .eq. 's') then
71    
72     do j = 1,sny
73     do i = 1,snx
74     if ( _hFacC(i,j,1,bi,bj) .eq. 0. ) then
75     arr(i,j,bi,bj) = 0. _d 0
76     endif
77     enddo
78     enddo
79    
80     else if (ckind .eq. 'u') then
81    
82     do j = 1,sny
83     do i = 1,snx
84     if ( maskw(i,j,1,bi,bj) .eq. 0. ) then
85     arr(i,j,bi,bj) = 0. _d 0
86     endif
87     enddo
88     enddo
89    
90     else if (ckind .eq. 'v') then
91    
92     do j = 1,sny
93     do i = 1,snx
94     if ( masks(i,j,1,bi,bj) .eq. 0. ) then
95     arr(i,j,bi,bj) = 0. _d 0
96     endif
97     enddo
98     enddo
99    
100     end if
101    
102     enddo
103     enddo
104    
105     end

  ViewVC Help
Powered by ViewVC 1.1.22