/[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.14 by heimbach, Tue Apr 4 14:52:43 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    
89            fc = fc            fc = fc
90       &            + mult_test   * objf_test(bi,bj)       &            + mult_test   * objf_test(bi,bj)
# Line 84  c--   Sum up all contributions. Line 93  c--   Sum up all contributions.
93          enddo          enddo
94        enddo        enddo
95    
96        print*,' local fc = ', fc        write(standardmessageunit,'(A,D22.15)') '  local fc = ', fc
97    
98  c--   Do global summation.  c--   Do global summation.
99        _GLOBAL_SUM_R8( fc , myThid )        _GLOBAL_SUM_R8( fc , myThid )
100    
101        print*,' global fc = ', fc        write(standardmessageunit,'(A,D22.15)') ' global fc = ', fc
102    
103  #endif /* ALLOW_ECCO */  #endif /* ALLOW_ECCO */
104    

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

  ViewVC Help
Powered by ViewVC 1.1.22