Function opensn::CMFDRatioChangesSign

Function Documentation

bool opensn::CMFDRatioChangesSign(double coarse_phi_old, double coarse_phi_new)

Return whether the prolongation ratio coarse_phi_new / coarse_phi_old of 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.