File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
opm/simulators/flow/python Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1919#include < fmt/format.h>
2020#include < dune/grid/common/gridenums.hh>
2121#include < dune/grid/common/rangegenerators.hh>
22+ #include < stdlib.h>
2223
2324namespace Opm ::Pybind {
2425
@@ -112,8 +113,8 @@ std::vector<double>
112113PyFluidState<TypeTag>::
113114getFluidStateVariable (const std::string &name) const
114115{
115- using ElementIterator = typename GridView::template Codim<0 >::Iterator;
116- using Element = typename GridView::template Codim<0 >::Entity;
116+ // using ElementIterator = typename GridView::template Codim<0>::Iterator;
117+ // using Element = typename GridView::template Codim<0>::Entity;
117118
118119 Model &model = this ->ebos_simulator_ ->model ();
119120 auto size = model.numGridDof ();
@@ -133,6 +134,7 @@ getFluidStateVariable(const std::string &name) const
133134 // for (; elem_itr != elem_end_itr; ++elem_itr) {
134135 std::cout << " i=" << i << std::endl;
135136 // const Element& elem = *elem_itr;
137+ setenv (" OPM_DEBUG" , " 1" , /* overwrite=*/ 1 );
136138 elem_ctx.updatePrimaryStencil (elem);
137139 elem_ctx.updatePrimaryIntensiveQuantities (/* timeIdx=*/ 0 );
138140 for (unsigned dof_idx = 0 ; dof_idx < elem_ctx.numPrimaryDof (/* timeIdx=*/ 0 ); ++dof_idx) {
You can’t perform that action at this time.
0 commit comments