Journal of computational physics