Numerical simulation of a compacting reservoir