Flux closures and source term models for shallow water models with depth-dependent integral porosity. (December 2018)