Old two-dimensional simulation code