pdf 260K - Madagascar
pdf 260K - Madagascar
pdf 260K - Madagascar
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
10<br />
76 s f p u t f l o a t (Fo , ”o3” , f t ∗ dt ) ;<br />
77<br />
78 dt2 = dt ∗ dt ;<br />
79<br />
80 /∗ s e t Laplacian c o e f f i c i e n t s ∗/<br />
81 d1 = 1 . 0 / ( d1∗d1 ) ;<br />
82 d2 = 1 . 0 / ( d2∗d2 ) ;<br />
83<br />
84 c11 = 4.0∗ d1 / 3 . 0 ;<br />
85 c12= −d1 / 1 2 . 0 ;<br />
86 c21 = 4.0∗ d2 / 3 . 0 ;<br />
87 c22= −d2 / 1 2 . 0 ;<br />
88 c0 = −2.0 ∗ ( c11+c12+c21+c22 ) ;<br />
89<br />
90 /∗ read wavelet , v e l o c i t y & source p o s i t i o n ∗/<br />
91 ww=s f f l o a t a l l o c ( nt ) ; s f f l o a t r e a d (ww , nt ,Fw) ;<br />
92 vv=s f f l o a t a l l o c 2 ( n1 , n2 ) ; s f f l o a t r e a d ( vv [ 0 ] , n12 , Fv ) ;<br />
93 r r=s f f l o a t a l l o c 2 ( n1 , n2 ) ; s f f l o a t r e a d ( r r [ 0 ] , n12 , Fr ) ;<br />
94<br />
95 /∗ a l l o c a t e temporary arrays ∗/<br />
96 u0=s f f l o a t a l l o c 2 ( n1 , n2 ) ;<br />
97 u1=s f f l o a t a l l o c 2 ( n1 , n2 ) ;<br />
98 u2=s f f l o a t a l l o c 2 ( n1 , n2 ) ;<br />
99 ud=s f f l o a t a l l o c 2 ( n1 , n2 ) ;<br />
100<br />
101 for ( i 2 =0; i2