/[MITgcm]/MITgcm/pkg/ecco/cost_readtopexmean.F
ViewVC logotype

Annotation of /MITgcm/pkg/ecco/cost_readtopexmean.F

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


Revision 1.4 - (hide annotations) (download)
Wed Jun 17 15:14:00 2009 UTC (15 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62d, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.3: +2 -10 lines
Reduce depth limit for altimetry to 200 m
(and make independent of vertical disctetization)

1 heimbach 1.4 C $Header: /u/gcmpack/MITgcm/pkg/ecco/cost_readtopexmean.F,v 1.3 2007/10/09 00:02:50 jmc Exp $
2 jmc 1.3 C $Name: $
3 heimbach 1.1
4     #include "COST_CPPOPTIONS.h"
5    
6    
7     subroutine cost_ReadTopexMean(
8     I mythid
9     & )
10    
11     c ==================================================================
12     c SUBROUTINE cost_ReadTopexMean
13     c ==================================================================
14     c
15     c o Read the time mean TOPEX SSH field.
16     c
17     c started: Christian Eckert eckert@mit.edu 25-May-1999
18     c
19     c changed: Christian Eckert eckert@mit.edu 25-Feb-2000
20     c
21     c - Restructured the code in order to create a package
22     c for the MITgcmUV.
23     c
24     c ==================================================================
25     c SUBROUTINE cost_ReadTopexMean
26     c ==================================================================
27    
28     implicit none
29    
30     c == global variables ==
31    
32     #include "EEPARAMS.h"
33     #include "SIZE.h"
34     #include "PARAMS.h"
35     #include "GRID.h"
36    
37     #include "ecco_cost.h"
38    
39     c == routine arguments ==
40    
41     integer mythid
42    
43     #ifdef ALLOW_SSH_MEAN_COST_CONTRIBUTION
44     c == local variables ==
45    
46     integer i,j,k
47     integer bi,bj
48     integer itlo,ithi
49     integer jtlo,jthi
50     integer jmin,jmax
51     integer imin,imax
52     _RL spval
53     _RL factor
54    
55     c == end of interface ==
56    
57     jtlo = mybylo(mythid)
58     jthi = mybyhi(mythid)
59     itlo = mybxlo(mythid)
60     ithi = mybxhi(mythid)
61     jmin = 1
62     jmax = sny
63     imin = 1
64     imax = snx
65    
66     c-- Convert mean ssh from cm to m
67     factor = 0.01
68     spval = -9990.
69    
70 jmc 1.3 call mdsreadfield( topexmeanfile, cost_iprec, cost_yftype, 1,
71 heimbach 1.1 & tpmean, 1, mythid )
72    
73     do bj = jtlo,jthi
74     do bi = itlo,ithi
75     k = 1
76     do j = jmin,jmax
77     do i = imin,imax
78     if (_hFacC(i,j,k,bi,bj) .eq. 0.) then
79     tpmeanmask(i,j,bi,bj) = 0. _d 0
80     else
81     tpmeanmask(i,j,bi,bj) = 1. _d 0
82     endif
83     if (tpmean(i,j,bi,bj) .lt. spval) then
84     tpmeanmask(i,j,bi,bj) = 0. _d 0
85     endif
86     if (tpmean(i,j,bi,bj) .eq. 0. _d 0 ) then
87     tpmeanmask(i,j,bi,bj) = 0. _d 0
88     endif
89    
90 heimbach 1.4 if ( R_low(i,j,bi,bj) .GT. -200. ) then
91 heimbach 1.1 tpmeanmask(i,j,bi,bj) = 0. _d 0
92     endif
93    
94     tpmeanmask(i,j,bi,bj) = tpmeanmask(i,j,bi,bj)*frame(i,j)
95     tpmean(i,j,bi,bj) = tpmean(i,j,bi,bj)*
96     & tpmeanmask(i,j,bi,bj)*
97     & factor
98     enddo
99     enddo
100     enddo
101     enddo
102    
103     #endif /* ALLOW_SSH_MEAN_COST_CONTRIBUTION */
104    
105     end
106    

  ViewVC Help
Powered by ViewVC 1.1.22