(23) |
(24) |
(25) |
When it comes time to think about the adjoint, however, it is easier to think of equation (24) than of (25). Let the matrix of equation (24) be called .Transposing to get and applying it to gives us something back in the space of ,namely .From it we see that the adjoint calculation, if done recursively, needs to be done backwards like
(26) |
A subroutine to do these jobs is causint() .
The code for anticausal integration is not obvious
from the code for integration and the adjoint coding tricks we
learned earlier.
To understand the adjoint, you need to inspect
the detailed form of the expression and take care to get the ends correct.
# causal integration (1's on diagonal)
#
subroutine causint( adj, add, n,xx, yy )
integer i, n, adj, add; real xx(n), yy(n )
temporary real tt( n)
call adjnull( adj, add, xx,n, yy,n )
if( adj == 0){ tt(1) = xx(1)
do i= 2, n
tt(i) = tt(i-1) + xx(i)
do i= 1, n
yy(i) = yy(i) + tt(i)
}
else { tt(n) = yy(n)
do i= n, 2, -1
tt(i-1) = tt(i) + yy(i-1)
do i= 1, n
xx(i) = xx(i) + tt(i)
}
return; end
causint
Figure 6 in1 is an input pulse. C in1 is its causal integral. C' in1 is the anticausal integral of the pulse. in2 is a separated doublet. Its causal integration is a box and its anticausal integration is the negative. CC in2 is the double causal integral of in2. How can a triangle be built? |
Later we will consider equations to march wavefields up towards the earth's surface, a layer at a time, an operator for each layer. Then the adjoint will start from the earth's surface and march down, a layer at a time, into the earth.