/[MITgcm]/MITgcm_contrib/osse/EnKF/distobs.F
ViewVC logotype

Annotation of /MITgcm_contrib/osse/EnKF/distobs.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Wed May 19 15:43:10 2004 UTC (21 years, 2 months ago) by afe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
o refining osse setup

1 afe 1.1 real function distobs(a,b,iobsloc,mobs,n)
2    
3     implicit none
4     integer, intent(in) :: mobs, n
5     integer, intent(in) :: iobsloc(mobs)
6     real*8, intent(in) :: a(mobs), b(n)
7     integer i,j
8    
9     distobs=(a(1)-b(iobsloc(1)))**2
10     do i=2,mobs
11     j = iobsloc(i)
12     distobs=distobs+(a(i)-b(j))**2
13     c write (*,*) j, a(i), b(j)
14     enddo
15     distobs=sqrt(distobs)
16    
17     return
18     end
19    
20    

  ViewVC Help
Powered by ViewVC 1.1.22