C $Header: /u/gcmpack/MITgcm/pkg/ecco/cost_gencost_customize.F,v 1.3 2010/04/19 22:02:23 gforget Exp $
C $Name: $
#include "COST_CPPOPTIONS.h"
subroutine COST_GENCOST_CUSTOMIZE( mythid )
c ==================================================================
c SUBROUTINE cost_gencost_assignperiod
c ==================================================================
implicit none
c == global variables ==
#include "EEPARAMS.h"
#include "SIZE.h"
#include "PARAMS.h"
#include "DYNVARS.h"
#include "FFIELDS.h"
#include "optim.h"
#include "ecco_cost.h"
#include "ctrl_dummy.h"
c == routine arguments ==
integer mythid
#ifdef ALLOW_GENCOST_CONTRIBUTION
c == local variables ==
integer bi,bj
integer i,j
integer itlo,ithi
integer jtlo,jthi
integer jmin,jmax
integer imin,imax
c == end of interface ==
jtlo = mybylo(mythid)
jthi = mybyhi(mythid)
itlo = mybxlo(mythid)
ithi = mybxhi(mythid)
jmin = 1
jmax = sny
imin = 1
imax = snx
do bj = jtlo,jthi
do bi = itlo,ithi
do j = jmin,jmax
do i = imin,imax
c #1:
c gencost_modfld(i,j,bi,bj,1) = qnet(i,j,bi,bj)
c #2:
gencost_modfld(i,j,bi,bj,1) = empmr(i,j,bi,bj)
c #3:
c gencost_modfld(i,j,bi,bj,3) = fu(i,j,bi,bj)
c #4:
c gencost_modfld(i,j,bi,bj,4) = fv(i,j,bi,bj)
c
enddo
enddo
enddo
enddo
#endif /* ALLOW_GENCOST_CONTRIBUTION */
end