/[MITgcm]/MITgcm/pkg/smooth/smooth_basic2d.F
ViewVC logotype

Annotation of /MITgcm/pkg/smooth/smooth_basic2d.F

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


Revision 1.1 - (hide annotations) (download)
Mon Feb 15 23:46:03 2010 UTC (14 years, 3 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint63, checkpoint65h, checkpoint65i, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
smooth package -- going to the main repository

1 gforget 1.1 C $Header: /u/gcmpack/MITgcm_contrib/gael/pkg/smooth2/smooth_basic2D.F,v 1.1 2009/10/25 21:24:03 gforget Exp $
2     C $Name: $
3    
4     #include "SMOOTH_OPTIONS.h"
5    
6     subroutine smooth_basic2D (
7     U fld_in,mask_in,dist_in,nbt_in,mythid)
8    
9     C *==========================================================*
10     C | SUBROUTINE smooth_basic2D
11     C | o this routine smoothes a 2D field isotropically (except for
12     C | the land mask) to a constant length scale. It mostly
13     C | calls smooth_diff2D.F.
14     C *==========================================================*
15    
16     IMPLICIT NONE
17     #include "SIZE.h"
18     #include "EEPARAMS.h"
19     #include "GRID.h"
20     #include "PARAMS.h"
21     c#include "tamc.h"
22     #include "SMOOTH.h"
23    
24     _RL mask_in(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx,nSy)
25     _RL fld_in(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
26     _RL dist_in
27     integer nbt_in
28     integer i,j,bi,bj
29     integer itlo,ithi
30     integer jtlo,jthi
31     integer myThid
32    
33    
34     jtlo = mybylo(mythid)
35     jthi = mybyhi(mythid)
36     itlo = mybxlo(mythid)
37     ithi = mybxhi(mythid)
38    
39     smooth2DtotTime=nbt_in*smooth2DdelTime
40    
41     DO bj=myByLo(myThid),myByHi(myThid)
42     DO bi=myBxLo(myThid),myBxHi(myThid)
43     DO j=1-OLy,sNy+OLy
44     DO i=1-OLx,sNx+OLx
45     smooth2D_Lx(i,j,bi,bj)=dist_in
46     smooth2D_Ly(i,j,bi,bj)=dist_in
47     ENDDO
48     ENDDO
49     ENDDO
50     ENDDO
51    
52     DO bj=myByLo(myThid),myByHi(myThid)
53     DO bi=myBxLo(myThid),myBxHi(myThid)
54     DO j=1-OLy,sNy+OLy
55     DO i=1-OLx,sNx+OLx
56     smooth2D_Kux(i,j,bi,bj)=smooth2D_Lx(i,j,bi,bj)*
57     & smooth2D_Lx(i,j,bi,bj)/smooth2DtotTime/2
58     smooth2D_Kvy(i,j,bi,bj)=smooth2D_Ly(i,j,bi,bj)*
59     & smooth2D_Ly(i,j,bi,bj)/smooth2DtotTime/2
60     ENDDO
61     ENDDO
62     ENDDO
63     ENDDO
64    
65     _EXCH_XY_RL ( smooth2D_Kux , myThid )
66     _EXCH_XY_RL ( smooth2D_Kvy , myThid )
67    
68     call smooth_diff2D(fld_in,mask_in,nbt_in,mythid)
69    
70     _EXCH_XY_RL ( fld_in , myThid )
71    
72     end

  ViewVC Help
Powered by ViewVC 1.1.22