merge parts of computeNumericalFluxes with doXSweep