ASSOC_LEGENDRE Interface

public interface ASSOC_LEGENDRE

Calls

interface~~assoc_legendre~~CallsGraph interface~assoc_legendre ASSOC_LEGENDRE proc~assoc_legendre_dp ASSOC_LEGENDRE_DP interface~assoc_legendre->proc~assoc_legendre_dp interface~log_fact LOG_FACT proc~assoc_legendre_dp->interface~log_fact proc~log_fact_dp LOG_FACT_DP interface~log_fact->proc~log_fact_dp

Called by

interface~~assoc_legendre~~CalledByGraph interface~assoc_legendre ASSOC_LEGENDRE proc~batch_alm_cons BATCH_ALM_CONS proc~batch_alm_cons->interface~assoc_legendre proc~bench_legendre BENCH_LEGENDRE proc~bench_legendre->interface~assoc_legendre proc~ssh_dp SSH_DP proc~ssh_dp->interface~assoc_legendre program~convergence_main CONVERGENCE_MAIN program~convergence_main->interface~assoc_legendre program~convergence_main->proc~batch_alm_cons interface~ssh SSH program~convergence_main->interface~ssh proc~batch_ssh_cons BATCH_SSH_CONS program~convergence_main->proc~batch_ssh_cons program~unnorm_stability_main UNNORM_STABILITY_MAIN program~unnorm_stability_main->interface~assoc_legendre interface~ssh->proc~ssh_dp program~bench_main BENCH_MAIN program~bench_main->proc~bench_legendre proc~bench_ssh BENCH_SSH program~bench_main->proc~bench_ssh program~main MAIN program~main->proc~batch_alm_cons program~main->proc~batch_ssh_cons proc~test1_gw TEST1_GW program~main->proc~test1_gw proc~test2_gw TEST2_GW program~main->proc~test2_gw proc~batch_pvsh_rad_cons BATCH_PVSH_RAD_CONS program~main->proc~batch_pvsh_rad_cons proc~test2_vsh TEST2_VSH program~main->proc~test2_vsh proc~batch_ssh_cons->interface~ssh proc~bench_ssh->interface~ssh proc~pvsh_rad_dp PVSH_RAD_DP proc~pvsh_rad_dp->interface~ssh proc~run_gwi_sweep RUN_GWI_SWEEP proc~run_gwi_sweep->interface~ssh proc~run_gwj_sweep RUN_GWJ_SWEEP proc~run_gwj_sweep->interface~ssh proc~test1_gw->interface~ssh proc~test2_gw->interface~ssh program~dipole_synthesis DIPOLE_SYNTHESIS program~dipole_synthesis->interface~ssh interface~pvsh_rad PVSH_RAD program~dipole_synthesis->interface~pvsh_rad interface~pvsh_rad->proc~pvsh_rad_dp program~gwi_gwj_sweep GWI_GWJ_SWEEP program~gwi_gwj_sweep->proc~run_gwi_sweep program~gwi_gwj_sweep->proc~run_gwj_sweep proc~batch_pvsh_rad_cons->interface~pvsh_rad proc~field_known FIELD_KNOWN proc~field_known->interface~pvsh_rad proc~test2_vsh->interface~pvsh_rad program~dipole_flux_expulsion DIPOLE_FLUX_EXPULSION program~dipole_flux_expulsion->interface~pvsh_rad program~dipole_uniform_sphere DIPOLE_UNIFORM_SPHERE program~dipole_uniform_sphere->interface~pvsh_rad

Module Procedures

private function ASSOC_LEGENDRE_DP(L, K, X) result(ASSOC_LEGENDRE)

Associated Legendre function , Condon-Shortley phase convention, computed by the classic Bonnet-type upward recurrence starting from . For negative order, . Unnormalized (unlike ASSOC_LEGENDRE_NORM_ALL); loses numerical stability well before the intermediate values literally overflow, since the later upward-in- recurrence involves a subtraction of two comparably huge terms (catastrophic cancellation).

Read more…

Arguments

Type IntentOptional Attributes Name
integer(kind=i4), intent(in) :: L

Degree, .

integer(kind=i4), intent(in) :: K

Order, .

real(kind=dp), intent(in) :: X

Argument, (typically ).

Return Value real(kind=dp)