using legacyDepth_ for the perfoation depth

for StandardWell. It turns out that it can be different with the
grid.getCellDepth() from the parser.
This commit is contained in:
Kai Bao
2017-08-01 16:11:55 +02:00
parent 6e0da756dc
commit 4f716a633d
5 changed files with 13 additions and 12 deletions

View File

@@ -45,12 +45,19 @@ namespace Opm
init(const PhaseUsage* phase_usage_arg,
const std::vector<bool>* active_arg,
const VFPProperties* vfp_properties_arg,
const std::vector<double>& depth_arg,
const double gravity_arg,
const int num_cells)
{
WellInterface<TypeTag>::init(phase_usage_arg, active_arg,
vfp_properties_arg, gravity_arg, num_cells);
vfp_properties_arg, depth_arg,
gravity_arg, num_cells);
perf_depth_.resize(numberOfPerforations(), 0.);
for (int perf = 0; perf < numberOfPerforations(); ++perf) {
const int cell_idx = wellCells()[perf];
perf_depth_[perf] = depth_arg[cell_idx];
}
// setup sparsity pattern for the matrices
//[A C^T [x = [ res