C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/ecco/cost_gencost_customize.F,v 1.2 2010/03/13 23:12:48 heimbach 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,bi,1) = qnet(i,j,bi,bi) c #2: gencost_modfld(i,j,bi,bi,1) = empmr(i,j,bi,bi) c #3: c gencost_modfld(i,j,bi,bi,3) = fu(i,j,bi,bi) c #4: c gencost_modfld(i,j,bi,bi,4) = fv(i,j,bi,bi) c enddo enddo enddo enddo #endif /* ALLOW_GENCOST_CONTRIBUTION */ end