Parent Directory | Revision Log | Revision Graph
pre-H-rewrite
1 | real function distobs(a,b,iobsloc,mobs,currobs,n) |
2 | implicit none |
3 | c#include osse_parms.h |
4 | integer, intent(in) :: currobs, n,mobs |
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,currobs |
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 |