Ensure that discretization selection is respected when solving and exporting.