4 subroutine coarsen(valdub,midub,mjdub,valbgc,mi2tot,mj2tot,nvar)
6 implicit double precision (a-h, o-z)
8 dimension valdub(nvar,midub, mjdub)
9 dimension valbgc(nvar,mi2tot,mj2tot)
26 valbgc(ivar,i,j) = (valdub(ivar,ifine,jfine) +
27 & valdub(ivar,ifine+1,jfine)+
28 & valdub(ivar,ifine,jfine+1) +
29 & valdub(ivar,ifine+1,jfine+1))/4.d0
subroutine coarsen(valdub, midub, mjdub, valbgc, mi2tot, mj2tot, nvar)