Skip to content

Commit

Permalink
Added one more line
Browse files Browse the repository at this point in the history
.. and a print statement
  • Loading branch information
hakonhagland committed Jan 11, 2024
1 parent c3e890f commit 8979bd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/simulators/PyBlackOilSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ py::array_t<double>
PyBlackOilSimulator::
getFluidStateVariable(const std::string &name) const
{
std::cout << "getFluidStateVariable: " << name << std::endl;
auto vector = getFluidState().getFluidStateVariable(name);
return py::array(vector.size(), vector.data());
}
Expand Down
1 change: 1 addition & 0 deletions python/test/test_fluidstate_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ def test_all(self):
sim.step_init()
sim.step()
oil_pressure = sim.get_fluidstate_variable(name='po')
assert True
#self.assertAlmostEqual(oil_pressure[0], 41729978.837, places=2, msg='value of oil pressure')

0 comments on commit 8979bd5

Please sign in to comment.