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

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

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


Revision 1.2 - (hide annotations) (download)
Mon Nov 17 22:32:33 2003 UTC (20 years, 6 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52n_post, checkpoint52j_post, checkpoint53d_post, checkpoint54a_pre, checkpoint55c_post, checkpoint54e_post, checkpoint52e_post, checkpoint54a_post, checkpoint53c_post, checkpoint55d_pre, hrcube_1, branch-netcdf, checkpoint52d_pre, checkpoint52l_post, checkpoint55h_post, checkpoint52k_post, checkpoint52b_pre, checkpoint54b_post, checkpoint53b_pre, checkpoint55b_post, checkpoint54d_post, checkpoint52m_post, checkpoint55, checkpoint53a_post, checkpoint54, checkpoint54f_post, checkpoint53b_post, checkpoint55g_post, checkpoint55f_post, checkpoint53, checkpoint52d_post, checkpoint52a_post, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, hrcube5, checkpoint55e_post, checkpoint52i_post, checkpoint52j_pre, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint55d_post
Branch point for: netcdf-sm0
Changes since 1.1: +3 -3 lines
fixes for DIVA

1 heimbach 1.1
2     #include "COST_CPPOPTIONS.h"
3    
4     subroutine cost_state_final( myThid )
5     C /==========================================================\
6     C | subroutine cost_state_final |
7     C | o This routine assigns final T,S to cost function |
8     C \==========================================================/
9     implicit none
10    
11     C == Global variables ===
12     #include "SIZE.h"
13     #include "EEPARAMS.h"
14     #include "PARAMS.h"
15     #include "GRID.h"
16     #include "DYNVARS.h"
17    
18     #include "cost.h"
19    
20     C ======== Routine arguments ======================
21     C myThid - Thread number for this instance of the routine.
22     integer myThid
23    
24     #ifdef ALLOW_COST_STATE_FINAL
25     C ========= Local variables =========================
26     integer i, j, k
27     integer bi, bj
28    
29     DO bj=myByLo(myThid),myByHi(myThid)
30     DO bi=myBxLo(myThid),myBxHi(myThid)
31     c DO k=1,nr
32     DO j=1,sNy
33     DO i=1,sNx
34     objf_state_final(i,j,bi,bj) = theta(i,j,1,bi,bj)
35     cph objf_state_final(i,j,k,bi,bj,1) = theta(i,j,k,bi,bj)
36     cph objf_state_final(i,j,k,bi,bj,2) = salt(i,j,k,bi,bj)
37     END DO
38     END DO
39     c END DO
40     END DO
41     END DO
42    
43 heimbach 1.2 cph fc = objf_state_final(45,4,1,1)
44     cph _GLOBAL_SUM_R8( fc , myThid )
45     cph print *, 'fc for admtlm test at 83,33 : ', fc
46 heimbach 1.1
47     #endif
48    
49     end

  ViewVC Help
Powered by ViewVC 1.1.22