Summary: This paper considers two-dimensional hierarchical locally-refined rectangular meshes with dynamic adaptation to the solution. A parallel algorithm with dynamic load balancing has been developed. Adaptive meshes have been used for the problem of passive contaminant transport in an oil-bearing stratum at water flooding. A model neglecting the capillary and gravity forces (Buckley-Leverett model) has been used.