1 |
c $Header$ |
C $Header$ |
2 |
|
|
3 |
#include "EXF_CPPOPTIONS.h" |
#include "EXF_OPTIONS.h" |
4 |
|
|
5 |
subroutine exf_filter_rs( |
subroutine exf_filter_rs( |
6 |
I arr, |
I arr, |
15 |
c o Read a flux record for external forcing. |
c o Read a flux record for external forcing. |
16 |
c |
c |
17 |
c started: Ralf.Giering@FastOpt.de 24-Mai-2000 |
c started: Ralf.Giering@FastOpt.de 24-Mai-2000 |
18 |
c changed: menemenlis@jpl.nasa.gov 20-Dec-2002 |
c mods for pkg/seaice: menemenlis@jpl.nasa.gov 20-Dec-2002 |
19 |
c |
c |
20 |
c ================================================================== |
c ================================================================== |
21 |
c SUBROUTINE exf_filter_rs |
c SUBROUTINE exf_filter_rs |
53 |
itlo = mybxlo(mythid) |
itlo = mybxlo(mythid) |
54 |
ithi = mybxhi(mythid) |
ithi = mybxhi(mythid) |
55 |
|
|
56 |
c Don't filter with pkg/seaice because of B/C-grid interpolation |
c Do not filter with pkg/seaice because of B/C-grid interpolation |
57 |
IF ( .NOT. useSEAICE ) THEN |
IF ( .NOT. useSEAICE ) THEN |
58 |
|
|
59 |
c filter forcing field array |
c filter forcing field array |
76 |
|
|
77 |
do j = 1,sny |
do j = 1,sny |
78 |
do i = 1,snx |
do i = 1,snx |
79 |
if ( _hFacC(i,j,1,bi,bj) .eq. 0. ) then |
if ( maskC(i,j,1,bi,bj) .eq. 0. ) then |
80 |
arr(i,j,bi,bj) = 0. _d 0 |
arr(i,j,bi,bj) = 0. _d 0 |
81 |
endif |
endif |
82 |
enddo |
enddo |
86 |
|
|
87 |
do j = 1,sny |
do j = 1,sny |
88 |
do i = 1,snx |
do i = 1,snx |
89 |
if ( maskw(i,j,1,bi,bj) .eq. 0. ) then |
if ( maskW(i,j,1,bi,bj) .eq. 0. ) then |
90 |
arr(i,j,bi,bj) = 0. _d 0 |
arr(i,j,bi,bj) = 0. _d 0 |
91 |
endif |
endif |
92 |
enddo |
enddo |
96 |
|
|
97 |
do j = 1,sny |
do j = 1,sny |
98 |
do i = 1,snx |
do i = 1,snx |
99 |
if ( masks(i,j,1,bi,bj) .eq. 0. ) then |
if ( maskS(i,j,1,bi,bj) .eq. 0. ) then |
100 |
arr(i,j,bi,bj) = 0. _d 0 |
arr(i,j,bi,bj) = 0. _d 0 |
101 |
endif |
endif |
102 |
enddo |
enddo |
108 |
enddo |
enddo |
109 |
|
|
110 |
ENDIF |
ENDIF |
111 |
|
c END IF ( .NOT. useSEAICE ) |
112 |
|
|
113 |
end |
end |