Function opensn::ComputePointwisePhiChange(LBSProblem&, int, std::optional<const std::reference_wrapper<std::vector<double>>>)
Defined in File convergence.h
Function Documentation
-
double opensn::ComputePointwisePhiChange(LBSProblem &lbs_problem, int groupset_id, std::optional<const std::reference_wrapper<std::vector<double>>> opt_phi_old = std::nullopt)
Maximum pointwise relative change between the new and old flux moments of the given groupsets (all groupsets when none are given), over all local nodes, groups, and moments, reduced over all ranks.
Each moment’s change is relative to the larger of its own magnitude and the magnitude of the scalar flux at the same node and group. An entry whose scale is below the smallest normal double contributes its absolute change. Collective.