tmdsimpy.utils.continuation.combine_callback_funs

tmdsimpy.utils.continuation.combine_callback_funs(funs_list, XlamP, dirP_prev)

Calls a set of callback functions for continuation.

Parameters:
funs_listlist of functions

List of callback functions that are called with arguments XlamP,dirP_prev.

XlamP(N+1,) numpy.ndarray

Solution at the current step in physical coordinates (including continuation parameter).

dirP_prev(N+1,) numpy.ndarray

Direction for prediction from previous step to this step. Can be used to get slope of solution at previous point w.r.t. lam by dividing dirP / dirP[-1]

Returns:
None.

See also

tmdsimpy.Continuation

Class for continuation where this function is intended to be used as a callback function.

Notes

Use this function when you want to call multiple callback functions with continuation as

>>> funs_list = [] # fill this in
...
... lambda XlamP, dirP_prev : combine_callback_funs(funs_list, 
...                                                 XlamP, dirP_prev)