contents

solve_depdp

Called by:   calc_depdp

Includes:   iscloc.h

External:
init_max_resid set by read_config
XSQ_LIM                          - maximum exponent part of weight for useful phase.
MIN_TOTAL_WEIGHT  - minimum total weight required to calculate a depth.

Input arguments:
Pointer to solution structure.
Array of phase structures.

Calls:  Function read_pP_P

Structure members updated:  depdp and depdp_error in solution structure.

Return:   0/1 for success/failure.

This function uses the residual in pP - P times for depth phases associated with an event to calculate the shift in depth with respect to the current solution depth that would minimize these residuals.  It then shifts