8 |
C !INTERFACE: |
C !INTERFACE: |
9 |
SUBROUTINE SHAP_FILT_TRACER_S2( |
SUBROUTINE SHAP_FILT_TRACER_S2( |
10 |
U field, tmpFld, |
U field, tmpFld, |
11 |
I kSize, myTime, myThid ) |
I nShapTr, kSize, myTime, myThid ) |
12 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
13 |
C *==========================================================* |
C *==========================================================* |
14 |
C | S/R SHAP_FILT_TRACER_S2 |
C | S/R SHAP_FILT_TRACER_S2 |
33 |
C == Routine arguments |
C == Routine arguments |
34 |
C field :: cell-centered 2D field on which filter applies |
C field :: cell-centered 2D field on which filter applies |
35 |
C tmpFld :: working temporary array |
C tmpFld :: working temporary array |
36 |
|
C nShapTr :: (total) power of the filter for this tracer |
37 |
C kSize :: length of 3rd Dim : either =1 (2D field) or =Nr (3D field) |
C kSize :: length of 3rd Dim : either =1 (2D field) or =Nr (3D field) |
38 |
C myTime :: Current time in simulation |
C myTime :: Current time in simulation |
39 |
C myThid :: Thread number for this instance of SHAP_FILT_TRACER_S2 |
C myThid :: Thread number for this instance of SHAP_FILT_TRACER_S2 |
40 |
INTEGER kSize |
INTEGER nShapTr, kSize |
41 |
_RL field(1-OLx:sNx+OLx,1-OLy:sNy+OLy,kSize,nSx,nSy) |
_RL field(1-OLx:sNx+OLx,1-OLy:sNy+OLy,kSize,nSx,nSy) |
42 |
_RL tmpFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,kSize,nSx,nSy) |
_RL tmpFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,kSize,nSx,nSy) |
43 |
_RL myTime |
_RL myTime |
52 |
_RL tmpGrd(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL tmpGrd(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
53 |
CEOP |
CEOP |
54 |
|
|
55 |
IF (nShapT.gt.0) THEN |
IF (nShapTr.gt.0) THEN |
56 |
C------- |
C------- |
57 |
C Apply computational filter ^(nShap-nShapPhys) without grid factor |
C Apply computational filter ^(nShap-nShapPhys) without grid factor |
58 |
C then apply Physical filter ^nShapPhys with grid factors |
C then apply Physical filter ^nShapPhys with grid factors |
59 |
C------- |
C------- |
60 |
nShapComput = nShapT - nShapTrPhys |
nShapComput = nShapTr - nShapTrPhys |
61 |
|
|
62 |
DO bj=myByLo(myThid),myByHi(myThid) |
DO bj=myByLo(myThid),myByHi(myThid) |
63 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
DO bi=myBxLo(myThid),myBxHi(myThid) |