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

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

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


Revision 1.2 - (show annotations) (download)
Fri Jan 23 18:58:26 2015 UTC (10 years, 11 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, HEAD
Changes since 1.1: +4 -4 lines
- replace _EXCH_XY_RL macro with CALL EXCH_XY_RL
- replace _EXCH_XYZ_RL macro with CALL EXCH_XYZ_RL

1 C $Header: /u/gcmpack/MITgcm/pkg/smooth/smooth_basic2d.F,v 1.1 2010/02/15 23:46: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 CALL EXCH_XY_RL ( smooth2D_Kux , myThid )
66 CALL EXCH_XY_RL ( smooth2D_Kvy , myThid )
67
68 call smooth_diff2D(fld_in,mask_in,nbt_in,mythid)
69
70 CALL EXCH_XY_RL ( fld_in , myThid )
71
72 end

  ViewVC Help
Powered by ViewVC 1.1.22