Commit d1bfe6a 1 parent 96b6ddc commit d1bfe6a Copy full SHA for d1bfe6a
File tree 1 file changed +4
-2
lines changed
opm/simulators/flow/python
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
#include < fmt/format.h>
20
20
#include < dune/grid/common/gridenums.hh>
21
21
#include < dune/grid/common/rangegenerators.hh>
22
+ #include < stdlib.h>
22
23
23
24
namespace Opm ::Pybind {
24
25
@@ -112,8 +113,8 @@ std::vector<double>
112
113
PyFluidState<TypeTag>::
113
114
getFluidStateVariable (const std::string &name) const
114
115
{
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;
117
118
118
119
Model &model = this ->ebos_simulator_ ->model ();
119
120
auto size = model.numGridDof ();
@@ -133,6 +134,7 @@ getFluidStateVariable(const std::string &name) const
133
134
// for (; elem_itr != elem_end_itr; ++elem_itr) {
134
135
std::cout << " i=" << i << std::endl;
135
136
// const Element& elem = *elem_itr;
137
+ setenv (" OPM_DEBUG" , " 1" , /* overwrite=*/ 1 );
136
138
elem_ctx.updatePrimaryStencil (elem);
137
139
elem_ctx.updatePrimaryIntensiveQuantities (/* timeIdx=*/ 0 );
138
140
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