186 |
c-- Compute model misfit and cost function term for |
c-- Compute model misfit and cost function term for |
187 |
c the vertical velovity field. The error is 1e-4 m/s. |
c the vertical velovity field. The error is 1e-4 m/s. |
188 |
do j = jmin,jmax |
do j = jmin,jmax |
189 |
do i = imin,imax |
do i = imin,imax |
190 |
if (_hFacC(i,j,k,bi,bj) .ne. 0.) then |
if (_hFacC(i,j,k,bi,bj) .ne. 0.) then |
191 |
fctilew = fctilew + |
fctilew = fctilew + |
192 |
& (2.5e11*cosphi(i,j,bi,bj)* |
& (2.5e11*cosphi(i,j,bi,bj)* |
193 |
& (wlmean(i,j,k,bi,bj)/nl - wfmean(i,j,k,bi,bj)/nf)* |
& (wlmean(i,j,k,bi,bj)/nl - wfmean(i,j,k,bi,bj)/nf)* |
194 |
& (wlmean(i,j,k,bi,bj)/nl - wfmean(i,j,k,bi,bj)/nf)) |
& (wlmean(i,j,k,bi,bj)/nl - wfmean(i,j,k,bi,bj)/nf)) |
195 |
endif |
if ( cosphi(i,j,bi,bj) .ne. 0. ) |
196 |
enddo |
& num_wdrift(bi,bj) = num_wdrift(bi,bj) + 1. _d 0 |
197 |
|
endif |
198 |
|
enddo |
199 |
enddo |
enddo |
200 |
|
|
201 |
enddo |
enddo |