c anirec - program to calculate receiver-function response of
c a stack of anisotropic layers to a plane wave incident from below
c CAN BE USED IN GRIDSEARCH OVER CC AND BAZ - SEE COMMENTED LINES FOR LOOP
c cannibalized from aniprop.f 11/18/95
c
c xf77 -o anirec -fast -native -O5 anirec.f plotlib refft.o
c
c refft.o is an object file of the C-routine refft.c
c compile this code with
c cc -c -fast -native -O5 refft.c
c
c The "-fast -native" option will generate a faster executable. Note that
c
c alias xf77 'f77 -I${OPENWINHOME}/include -L${OPENWINHOME}/lib -lxview -lolgx -lX11'
c
c plotlib is PLOTIT plotting package, used to plot results thruout the code
c PLOTIT resides at love.geology.yale.edu FTP site at pub/park/Plotxy
c
c for hexagonally symmetric media
c reads fast axis orientation, constants A,B,C,D,E from file animodel
c c reads a layered model like the following file (ignore the "c "s)
c
c K&H SoCal model, deep crust horizontal anisotropy <-- TITLE
c 3 <--- # OF LAYERS OVER HSPACE
c 45 45 <--- THETA,PHI ORIENTATION ANGLES
c 4000 5500 0.06 0.00 3175 0.03 2600 FOR SYMMETRY AXIS
c 0 0
c 27400 6300 0.00 0.00 3637 0.00 2800 <-- DEPTH(M),VP(M/S),"B","C",VS(M/S),"E"
c 90 45
c 32400 6800 0.04 0.00 3925 0.02 2900 <-- B,C,E ARE ANISOTROPIC PARAMETERS
c 0 0
c 60000 7800 0.00 0.00 4500 0.00 3200 <--- HALFSPACE MUST BE ISOTROPIC
c
c calculate quadratic eigenvalue problem based on the Christoffel matrix
c see appendix of P. Shearer's thesis
c
c read model, phase velocity of incident wave, loop thru incident P, SV, SH
c
c calc the eigenvector decomps for the layers
c loop over frequency, calc reflection/transmission matrices
c calc 3-comp transfer fct response at surface
c find distortion of reference wavelet
c