The total (accumulated) phase contributions must be available in ratio->psum for each completion when leaving the function.