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

Diff of /MITgcm/pkg/cost/cost_final.F

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

revision 1.10 by heimbach, Sat Dec 4 23:22:28 2004 UTC revision 1.15 by heimbach, Wed Jun 7 01:55:13 2006 UTC
# Line 28  c     == global variables == Line 28  c     == global variables ==
28  #include "PARAMS.h"  #include "PARAMS.h"
29    
30  #include "cost.h"  #include "cost.h"
31  #include "ctrl.h"  #ifdef ALLOW_CTRL
32    # include "ctrl.h"
33    #endif
34    
35  c     == routine arguments ==  c     == routine arguments ==
36    
# Line 49  c     == end of interface == Line 51  c     == end of interface ==
51        itlo = mybxlo(mythid)        itlo = mybxlo(mythid)
52        ithi = mybxhi(mythid)        ithi = mybxhi(mythid)
53    
54    #ifdef ALLOW_SEAICE
55          CALL SEAICE_COST_FINAL (myThid)
56    #endif
57    
58  #if (defined (ALLOW_ECCO))  #if (defined (ALLOW_ECCO))
59        CALL ECCO_COST_FINAL (myThid)        CALL ECCO_COST_FINAL (myThid)
60    
# Line 73  c--   Sum up all contributions. Line 79  c--   Sum up all contributions.
79        do bj = jtlo,jthi        do bj = jtlo,jthi
80          do bi = itlo,ithi          do bi = itlo,ithi
81    
82            print*,' --> objf_test(bi,bj)   =',objf_test(bi,bj)            write(standardmessageunit,'(A,D22.15)')
83            print*,' --> objf_tracer(bi,bj) =',objf_tracer(bi,bj)       &          ' --> objf_test(bi,bj)   = ', objf_test(bi,bj)
84            print*,' --> objf_atl(bi,bj)    =',objf_atl(bi,bj)            write(standardmessageunit,'(A,D22.15)')
85         &         ' --> objf_tracer(bi,bj) = ', objf_tracer(bi,bj)
86              write(standardmessageunit,'(A,D22.15)')
87         &         ' --> objf_atl(bi,bj)    = ', objf_atl(bi,bj)
88    #ifdef ALLOW_COST_TRANSPORT
89              write(standardmessageunit,'(A,D22.15)')
90         &         ' --> objf_transport(bi,bj) = ', objf_transport(bi,bj)
91    #endif
92    
93            fc = fc            fc = fc
94       &            + mult_test   * objf_test(bi,bj)       &            + mult_test   * objf_test(bi,bj)
95       &            + mult_tracer * objf_tracer(bi,bj)       &            + mult_tracer * objf_tracer(bi,bj)
96       &            + mult_atl    * objf_atl(bi,bj)       &            + mult_atl    * objf_atl(bi,bj)
97    #ifdef ALLOW_COST_TRANSPORT
98         &            + mult_transport * objf_transport(bi,bj)
99    #endif
100          enddo          enddo
101        enddo        enddo
102    
103        print*,' local fc = ', fc        write(standardmessageunit,'(A,D22.15)') '  local fc = ', fc
104    
105  c--   Do global summation.  c--   Do global summation.
106        _GLOBAL_SUM_R8( fc , myThid )        _GLOBAL_SUM_R8( fc , myThid )
107    
108        print*,' global fc = ', fc        write(standardmessageunit,'(A,D22.15)') ' global fc = ', fc
109    
110  #endif /* ALLOW_ECCO */  #endif /* ALLOW_ECCO */
111    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.22