in flux, need special cases for horizontal/vertical walls, use slope theta value otherwise