Read DISGAS and VAPOIL from deck and pass them to the simulator
Introduce primaryVariable_ and use it to switch primary variables
Support Oil/Water case
The updatePrimalVariableFromState is now only called when
the gas phase is active.
Merge pull request #144 from totto82/primalvariable

Refactor primary variable switching
sim_fibo_ad_cp: make it compile

The constructor for the simulator class changed recently...
Merge pull request #153 from andlaus/fix_sim_fibo_ad_cp

sim_fibo_ad_cp: make it compile
allow the opm-parser test to fail

since the module currently calls the tests for cJSON and boost with
the REQUIRED flag set, cmake aborts completely even if opm-parser is
not REQUIRED. For modules which depend on opm-core that's currently a
non-issue because core has a requirement on parser, but the parser may
be useful for external projects as well, so we play nice.

Also, with this patch the config.h variable HAVE_OPM_PARSER is set...
Findopm-parser.cmake: make sure that the ERT libraries are available

and some other minor cleanups to the module. For me it still works,
but this being the build system, I can't guarantee more...
Findopm-parser.cmake: invoke FindBoost unconditionally

even if boost was found previously, it might still miss a few
libraries. thanks to @akva2 for catching this.
Disable search for Boost in parser detection

This changeset disables the effect of commit 778e87d.  There appears
to be an unforeseen interaction between the calls to

    Find_Package (Boost)

that are implied by module 'opm-parser-prereqs.cmake' and the one
that's directly invoked in 'Findopm-parser.cmake'.  Until the
situation can be fully analysed and a complete solution implemented,
this is a temporary measure to restore the build of opm-core and
downstream OPM modules.
added: hook for conditionally compiled files

backport from opm-upscaling PR#100
Merge pull request #155 from bska/154_cmake

Synchronise build system with OPM-Core
Include EQUIL-based inititalisation for 3-phase.
Findopm-parser.cmake: Fix it up, next try

thanks to Arne Morten Kvarving, Bård Skaflestad and Roland Kaufmann
for the discussion.
add the boost::regex library as a prerequisite

this is required for regex-matching keywords. Once GCC 4.9 is the
minimum compiler version to be supported, this can be dropped in favor
of std::regex ...
Merge pull request #162 from andlaus/sync_Findopm-parser.cmake

Sync findopm parser.cmake
Fix phase property references

Methods 'computeRelperm()' and 'computePressures()' *always* return
a three-element vector of phase properties.  We must therefore
translate to canonical phase indices before indexing into the
results.
variableState: Don't reference non-existing variable

The "xvar" exists only if Gas is active.  Therefore, we cannot
extract that variable from "vars" unless we know that Gas is an
active phase.  Failing to do so would wrongfully increment 'nextvar'
whence the final BHP variable would be an out-of-bounds access.
variableState: Defer r{s,v}Sat calculation

Quantities rsSat and rvSat are not needed unless we have an active
Gas phase.  Don't calculate them until we know that they are
actually needed.
variableState: Use pre-computed list of "all cells"

Class FullyImplicitBlackoilSolver<Grid> already features a list of
"all" cells, built at object construction time.  There's no need to
re-compute that list on every call to variableState() (when Gas is
active).