| 1 |
C $Header: /u/gcmpack/MITgcm/pkg/smooth/smooth_init_fixed.F,v 1.4 2014/01/25 16:03:56 atn Exp $ |
| 2 |
C $Name: $ |
| 3 |
|
| 4 |
#include "SMOOTH_OPTIONS.h" |
| 5 |
|
| 6 |
subroutine smooth_init_fixed (mythid) |
| 7 |
|
| 8 |
C *==========================================================* |
| 9 |
C | SUBROUTINE smooth_init_fixed |
| 10 |
C | o Routine that initializes smoothing/correlation operators |
| 11 |
C *==========================================================* |
| 12 |
|
| 13 |
IMPLICIT NONE |
| 14 |
#include "SIZE.h" |
| 15 |
#include "EEPARAMS.h" |
| 16 |
#include "PARAMS.h" |
| 17 |
#include "GRID.h" |
| 18 |
#include "SMOOTH.h" |
| 19 |
|
| 20 |
integer myThid |
| 21 |
integer ikey_bak |
| 22 |
integer smoothOpNb |
| 23 |
|
| 24 |
integer i,j,k, bi, bj, imin, imax, jmin, jmax |
| 25 |
integer itlo,ithi |
| 26 |
integer jtlo,jthi |
| 27 |
|
| 28 |
jtlo = mybylo(mythid) |
| 29 |
jthi = mybyhi(mythid) |
| 30 |
itlo = mybxlo(mythid) |
| 31 |
ithi = mybxhi(mythid) |
| 32 |
|
| 33 |
DO bj=jtlo,jthi |
| 34 |
DO bi=itlo,ithi |
| 35 |
DO k=1,Nr |
| 36 |
DO j=1-OLy,sNy+OLy |
| 37 |
DO i=1-OLx,sNx+OLx |
| 38 |
smooth_recip_hFacC(i,j,k,bi,bj)=_recip_hFacC(i,j,k,bi,bj) |
| 39 |
smooth_hFacW(i,j,k,bi,bj)=_hFacW(i,j,k,bi,bj) |
| 40 |
smooth_hFacS(i,j,k,bi,bj)=_hFacS(i,j,k,bi,bj) |
| 41 |
ENDDO |
| 42 |
ENDDO |
| 43 |
ENDDO |
| 44 |
ENDDO |
| 45 |
ENDDO |
| 46 |
|
| 47 |
DO smoothOpNb=1,smoothOpNbMax |
| 48 |
if (smooth2Dtype(smoothOpNb).NE.0) then |
| 49 |
call smooth_init2D(smoothOpNb,mythid) |
| 50 |
endif |
| 51 |
ENDDO |
| 52 |
|
| 53 |
DO smoothOpNb=1,smoothOpNbMax |
| 54 |
if (smooth2Dtype(smoothOpNb).NE.0) then |
| 55 |
call smooth_filtervar2D(smoothOpNb,mythid) |
| 56 |
endif |
| 57 |
ENDDO |
| 58 |
|
| 59 |
DO smoothOpNb=1,smoothOpNbMax |
| 60 |
if ((smooth3DtypeZ(smoothOpNb).NE.0).OR. |
| 61 |
& (smooth3DtypeH(smoothOpNb).NE.0)) then |
| 62 |
call smooth_init3D(smoothOpNb,mythid) |
| 63 |
endif |
| 64 |
ENDDO |
| 65 |
|
| 66 |
DO smoothOpNb=1,smoothOpNbMax |
| 67 |
if ((smooth3DtypeZ(smoothOpNb).NE.0).OR. |
| 68 |
& (smooth3DtypeH(smoothOpNb).NE.0)) then |
| 69 |
call smooth_filtervar3D(smoothOpNb,mythid) |
| 70 |
endif |
| 71 |
ENDDO |
| 72 |
|
| 73 |
END |
| 74 |
|
| 75 |
|