/[MITgcm]/MITgcm/pkg/cost/cost_test.F
ViewVC logotype

Annotation of /MITgcm/pkg/cost/cost_test.F

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


Revision 1.3 - (hide annotations) (download)
Tue Nov 20 21:06:48 2001 UTC (22 years, 6 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint44e_post, checkpoint44f_post, checkpoint43a-release1mods, chkpt44d_post, checkpoint44e_pre, release1-branch_tutorials, chkpt44a_post, checkpoint44h_pre, chkpt44c_pre, checkpoint44g_post, release1-branch-end, checkpoint44b_post, chkpt44a_pre, checkpoint44b_pre, checkpoint44, chkpt44c_post, checkpoint44f_pre, release1-branch_branchpoint
Branch point for: release1_final, release1-branch
Changes since 1.2: +1 -13 lines
Bring up-to-date with "new" maskC.

1 heimbach 1.3 C $Header: /u/gcmpack/models/MITgcmUV/pkg/cost/cost_test.F,v 1.2 2001/04/10 22:35:26 heimbach Exp $
2 heimbach 1.1
3     #include "CPP_OPTIONS.h"
4    
5     subroutine cost_test( myThid )
6     C /==========================================================\
7     C | subroutine cost_test |
8     C | o this routine computes the cost function for the tiles |
9     C | of this processor |
10     C |==========================================================|
11     C | |
12     C | Notes |
13     C | ===== |
14     C \==========================================================/
15     IMPLICIT NONE
16    
17     C == Global variables ===
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "DYNVARS.h"
22     #include "GRID.h"
23    
24     #include "cost.h"
25    
26     C == Routine arguments ==
27     C myThid - Thread number for this instance of the routine.
28     integer bi, bj
29     integer myThid
30    
31     #ifdef ALLOW_COST_TEST
32     C == Local variables
33     _RL thetaRef
34    
35     integer i, j, k
36     integer ig, jg
37     integer itlo,ithi
38     integer jtlo,jthi
39    
40     jtlo = mybylo(mythid)
41     jthi = mybyhi(mythid)
42     itlo = mybxlo(mythid)
43     ithi = mybxhi(mythid)
44    
45     iLocOut = 6
46     jLocOut = 35
47     kLocOut = 1
48    
49     ce some reference temperature
50     thetaRef = 24.0D0
51    
52     C-- Calculate mask for tracer cells (0 => land, 1 => water)
53     k=1
54    
55     C-- Calculate cost function on tile of this instance
56     do bj = jtlo,jthi
57     do bi = itlo,ithi
58     do j=1,sNy
59     jg = myYGlobalLo-1+(bj-1)*sNy+j
60     do i=1,sNx
61     ig = myXGlobalLo-1+(bi-1)*sNx+i
62    
63     if ((ig .eq. iLocOut) .and. (jg .eq. jLocOut)) then
64 heimbach 1.2 write(*,'(a,3(x,i4),a,4(x,i4))')
65     & 'COST ',ig,jg,kLocOut,' TILE ',i,j,bi,bj
66 heimbach 1.1 objf_test(bi,bj) = theta(i,j,kLocOut,bi,bj)
67     endif
68    
69     end do
70     end do
71     end do
72     end do
73    
74     #endif
75    
76     END

  ViewVC Help
Powered by ViewVC 1.1.22