find_pP
Called by: calc_depdp
Includes: iscloc.h
External:
Definition of structure pP_max_reisd_rec.
Array of pP_max_reisd_rec structures, pP_max_reisd.
Number of rows in that array, NUM_MAX_RESID.
Input arguments:
Pointer to solution
structure.
Array of
phase
structures.
Calls: Function read_pP_P
and function add_to_error
from utils
Structure members updated: phase
in phase
structure.
Return: 0/1 for success/failure.
This function loops through all associated phases finding those that could
be pP for use in the depth phase depth calculation. Phases with a rep_phase
of pP will already have phase
pP and this will remain unless such a phase is not possible at the current delta and source depth. Phases with null phase
will be named pP if their pP - P residual when compared with the table value calculated in read_pP_P
is small enough. The threshold used to decide whether a residual is
small enough depends on source depth and the different values are held in
a structure at the top of the file.