Function opensn::CMFDRatioChangesSign
Defined in File cmfd_vector_tools.h
Function Documentation
-
bool opensn::CMFDRatioChangesSign(double coarse_phi_old, double coarse_phi_new)
Return whether the prolongation ratio
coarse_phi_new / coarse_phi_oldof one coarse value is not admissible: the old value is not zero, and it is negative, or the ratio is negative or not finite.A negative old value is not rescaled, because a positive ratio of two negative values can be large and would amplify the negative fine flux. See CMFDCountSignChangingRatios.