OPM/opm-core — pull request #117 by bska (2013-01-18 12:28:06+00:00)
Title: Release preparation: Fix out-of-bounds indexing in context of shut wells

This commit corrects a latent issue in the initialisation of an `Opm::WellState` object through its `init()` method. In particular, the code did not account for the possibility, albeit remote, of there being shut wells among the well set represented by `wells`. Shut wells would lead to an out-of-bounds index (`-1`).