Skip to content

Commit 9bbc0fc

Browse files
committed
Added more debug output
1 parent 7ef9714 commit 9bbc0fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opm/simulators/flow/python/PyFluidState_impl.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ getFluidStateVariable(const std::string &name) const
115115

116116
Model &model = this->ebos_simulator_->model();
117117
auto size = model.numGridDof();
118+
std::cout << "model size=" << size << std::endl;
118119
std::vector<double> array(size);
119120
const auto& grid_view = this->ebos_simulator_->vanguard().gridView();
120121
/* NOTE: grid_view.size(0) should give the same value as
@@ -129,7 +130,7 @@ getFluidStateVariable(const std::string &name) const
129130
for (; elem_itr != elem_end_itr; ++elem_itr) {
130131
std::cout << "i=" << i << std::endl;
131132
const Element& elem = *elem_itr;
132-
//elem_ctx.updatePrimaryStencil(elem);
133+
elem_ctx.updatePrimaryStencil(elem);
133134
elem_ctx.updatePrimaryIntensiveQuantities(/*timeIdx=*/0);
134135
for (unsigned dof_idx = 0; dof_idx < elem_ctx.numPrimaryDof(/*timeIdx=*/0); ++dof_idx) {
135136
std::cout << "j=" << dof_idx << std::endl;
@@ -138,6 +139,7 @@ getFluidStateVariable(const std::string &name) const
138139
unsigned global_dof_idx = elem_ctx.globalSpaceIndex(dof_idx, /*timeIdx=*/0);
139140
array[global_dof_idx] = getVariableValue_(fs, var_type, name);
140141
}
142+
i+=1;
141143
}
142144
return array;
143145
}

0 commit comments

Comments
 (0)