mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Removed unneeded function numGlobalCells().
This commit is contained in:
@@ -36,8 +36,6 @@ namespace Opm
|
|||||||
PermeabilityKind fillTensor(const EclipseGridParser& parser,
|
PermeabilityKind fillTensor(const EclipseGridParser& parser,
|
||||||
std::vector<const std::vector<double>*>& tensor,
|
std::vector<const std::vector<double>*>& tensor,
|
||||||
std::tr1::array<int,9>& kmap);
|
std::tr1::array<int,9>& kmap);
|
||||||
|
|
||||||
int numGlobalCells(const EclipseGridParser& parser);
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
|
|
||||||
@@ -334,26 +332,6 @@ namespace Opm
|
|||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
int numGlobalCells(const EclipseGridParser& parser)
|
|
||||||
{
|
|
||||||
int ngc = -1;
|
|
||||||
|
|
||||||
if (parser.hasField("DIMENS")) {
|
|
||||||
const std::vector<int>&
|
|
||||||
dims = parser.getIntegerValue("DIMENS");
|
|
||||||
|
|
||||||
ngc = dims[0] * dims[1] * dims[2];
|
|
||||||
}
|
|
||||||
else if (parser.hasField("SPECGRID")) {
|
|
||||||
const SPECGRID& sgr = parser.getSPECGRID();
|
|
||||||
|
|
||||||
ngc = sgr.dimensions[ 0 ];
|
|
||||||
ngc *= sgr.dimensions[ 1 ];
|
|
||||||
ngc *= sgr.dimensions[ 2 ];
|
|
||||||
}
|
|
||||||
|
|
||||||
return ngc;
|
|
||||||
}
|
|
||||||
} // anonymous namespace
|
} // anonymous namespace
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
|||||||
Reference in New Issue
Block a user