1 |
c $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "EXF_CPPOPTIONS.h" |
#include "EXF_OPTIONS.h" |
5 |
|
|
6 |
subroutine exf_filter_rs( |
subroutine exf_filter_rs( |
7 |
I arr, |
I arr, |
16 |
c o Read a flux record for external forcing. |
c o Read a flux record for external forcing. |
17 |
c |
c |
18 |
c started: Ralf.Giering@FastOpt.de 24-Mai-2000 |
c started: Ralf.Giering@FastOpt.de 24-Mai-2000 |
19 |
|
c mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002 |
20 |
c |
c |
21 |
c ================================================================== |
c ================================================================== |
22 |
c SUBROUTINE exf_filter_rs |
c SUBROUTINE exf_filter_rs |
29 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
30 |
#include "SIZE.h" |
#include "SIZE.h" |
31 |
#include "GRID.h" |
#include "GRID.h" |
32 |
#include "exf_constants.h" |
#include "PARAMS.h" |
33 |
#include "exf.h" |
#include "EXF_CONSTANTS.h" |
34 |
#include "exf_param.h" |
#include "EXF.h" |
35 |
|
#include "EXF_PARAM.h" |
36 |
|
|
37 |
c == routine arguments == |
c == routine arguments == |
38 |
|
|
54 |
itlo = mybxlo(mythid) |
itlo = mybxlo(mythid) |
55 |
ithi = mybxhi(mythid) |
ithi = mybxhi(mythid) |
56 |
|
|
57 |
|
c Do not filter with pkg/seaice because of B/C-grid interpolation |
58 |
|
IF ( .NOT. useSEAICE ) THEN |
59 |
|
|
60 |
c filter forcing field array |
c filter forcing field array |
61 |
do bj = jtlo,jthi |
do bj = jtlo,jthi |
62 |
do bi = itlo,ithi |
do bi = itlo,ithi |
77 |
|
|
78 |
do j = 1,sny |
do j = 1,sny |
79 |
do i = 1,snx |
do i = 1,snx |
80 |
if ( _hFacC(i,j,1,bi,bj) .eq. 0. ) then |
if ( maskC(i,j,1,bi,bj) .eq. 0. ) then |
81 |
arr(i,j,bi,bj) = 0. _d 0 |
arr(i,j,bi,bj) = 0. _d 0 |
82 |
endif |
endif |
83 |
enddo |
enddo |
87 |
|
|
88 |
do j = 1,sny |
do j = 1,sny |
89 |
do i = 1,snx |
do i = 1,snx |
90 |
if ( maskw(i,j,1,bi,bj) .eq. 0. ) then |
if ( maskW(i,j,1,bi,bj) .eq. 0. ) then |
91 |
arr(i,j,bi,bj) = 0. _d 0 |
arr(i,j,bi,bj) = 0. _d 0 |
92 |
endif |
endif |
93 |
enddo |
enddo |
97 |
|
|
98 |
do j = 1,sny |
do j = 1,sny |
99 |
do i = 1,snx |
do i = 1,snx |
100 |
if ( masks(i,j,1,bi,bj) .eq. 0. ) then |
if ( maskS(i,j,1,bi,bj) .eq. 0. ) then |
101 |
arr(i,j,bi,bj) = 0. _d 0 |
arr(i,j,bi,bj) = 0. _d 0 |
102 |
endif |
endif |
103 |
enddo |
enddo |
108 |
enddo |
enddo |
109 |
enddo |
enddo |
110 |
|
|
111 |
|
ENDIF |
112 |
|
c END IF ( .NOT. useSEAICE ) |
113 |
|
|
114 |
end |
end |