mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Print face fluxes after solve.
Also define the HACK_INCOMPRESSIBLE_GRAVITY symbol, since test case is meaningless without it.
This commit is contained in:
parent
f6c6ee0fa0
commit
37677fe032
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
#define HACK_INCOMPRESSIBLE_GRAVITY 1
|
||||||
|
|
||||||
#include <opm/autodiff/ImpesTPFAAD.hpp>
|
#include <opm/autodiff/ImpesTPFAAD.hpp>
|
||||||
|
|
||||||
#include <opm/core/grid.h>
|
#include <opm/core/grid.h>
|
||||||
@ -140,8 +142,13 @@ main(int argc, char* argv[])
|
|||||||
|
|
||||||
ps.solve(1.0, state, well_state);
|
ps.solve(1.0, state, well_state);
|
||||||
|
|
||||||
|
std::cout << "Cell pressure:" << std::endl;
|
||||||
std::copy(state.pressure().begin(), state.pressure().end(), std::ostream_iterator<double>(std::cout, " "));
|
std::copy(state.pressure().begin(), state.pressure().end(), std::ostream_iterator<double>(std::cout, " "));
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
std::cout << "Face flux:" << std::endl;
|
||||||
|
std::copy(state.faceflux().begin(), state.faceflux().end(), std::ostream_iterator<double>(std::cout, " "));
|
||||||
|
std::cout << std::endl;
|
||||||
|
std::cout << "Well bhp pressure:" << std::endl;
|
||||||
std::copy(well_state.bhp().begin(), well_state.bhp().end(), std::ostream_iterator<double>(std::cout, " "));
|
std::copy(well_state.bhp().begin(), well_state.bhp().end(), std::ostream_iterator<double>(std::cout, " "));
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user