[WIP] only initialize grid once
This is PR #945 plus some fixes.
flow_ebos now uses the grid object which gets created by ebos for everything
which should make the parallelization efforts easier. I also tried to
cut back the use of the legacy property objects (i.e., for the fluid,
geologic and rock properties), but this effort ran aground because of
the initialization and output code. (also, if those two were fixed,
there would probably be issues with the Newton update.)
I ran Norne with this and there did not seem to be any notable
performance regressions or benefits (serial run).
Some of the new functions here look like very close duplicates of existing things, in particular setupState(). Could we avoid that with a little refactoring?
This is more a WIP PR. I'll let you know when it's ready to be considered.
> Could we avoid that with a little refactoring?
it was primarily done like this because some details which are currently hard-wired needed to be changed (in this case: the grid needed to be created independently of the property objects) and I did not want to change the base class. But you're right: this is on my refactoring agenda. (e.g. the property objects should be removed wholesale.)
Is this on its way out of WIP status? Tell me if it's time to review it.