Skip to content

Commit d1bfe6a

Browse files
committed
Set environment variable
1 parent 96b6ddc commit d1bfe6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

opm/simulators/flow/python/PyFluidState_impl.hpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <fmt/format.h>
2020
#include <dune/grid/common/gridenums.hh>
2121
#include <dune/grid/common/rangegenerators.hh>
22+
#include <stdlib.h>
2223

2324
namespace Opm::Pybind {
2425

@@ -112,8 +113,8 @@ std::vector<double>
112113
PyFluidState<TypeTag>::
113114
getFluidStateVariable(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) {

0 commit comments

Comments
 (0)