OPM/opm-core — pull request #47 by bska (2012-10-05 09:20:00+00:00)
Title: Expand Well Treatment

This change introduces support for building a `WellsManager` from an existing `Wells` object.

Specifically, we introduce a new constructor:

```
WellsManager::WellsManager(struct Wells* W)
```

that creates a clone of the `Wells` object and assumes ownership of the clone through the internal `w_` object. This enables using wells acquired through external means--e.g., from a textual description in a file--that is not already supported in the `EclipseGridParser`.

The downside of the new constructor is the lack of logic to support the internal state machine for checking well constraints. In other words, if we are using the new constructor, then we are no longer able to check if any constraints are violated and update the control scenario accordingly.

A new function `clone_wells()` effects the actual deep copy of the `Wells` object.