/root/tmp/opm-core-release-2015.10-final/opm/core/props/IncompPropertiesShadow.hpp

Override certain properties with values from elsewhere.

This allows mixing of property objects from several sources, such as rock and fluid properties from a file but unsaturated properties from a function. Care must be taken to setup the shadowing so no inconsistencies arise.

Remarks
This object is mutable; if you change some properties it will affect all clients that have references to it. It is thus recommended to only use the mutable portion when constructing the object, before passing it to clients.
std::vector<double> poro;
IncompPropertiesFromDeck fromDeck(deck, grid);
simulate (IncompPropertiesShadow(fromDeck).usePorosity(poro));