contents

calc_depdp 

Called by:   main

Includes:   iscloc.h

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

Calls:   Functions find_pP, pP_duplicates, calc_pP_resid, and solve_depdp.

Structure members updated:  none.

Return:   0/1 for success/failure.

This function calls a sequence of other functions to identify depth phases, calculate pP - P residuals for them and then use the residuals to calculate a depth phase depth.  This function needs to be called after id_pha so that pP phases reported with other names (e.g. AP) have been identified.  If this function is run each iteration, as when the fix_on_depdp flag is set, then id_pha must also be run afterwards as the depth will have changed and the previous identifications are now out of date.