Fix in getWells(..wellNamePattern), - use new Well::wellNameInWellNamePattern

This commit is contained in:
chflo 2015-08-31 16:35:54 +02:00
parent a19c52566d
commit 2c27fa6076

View File

@ -1286,7 +1286,7 @@ namespace Opm {
if (wildcard_pos == wellNamePattern.length()-1) {
for (auto wellIter = m_wells.begin(); wellIter != m_wells.end(); ++wellIter) {
WellPtr well = *wellIter;
if (wellNamePattern.compare (0, wildcard_pos, well->name(), 0, wildcard_pos) == 0) {
if (Well::wellNameInWellNamePattern(well->name(), wellNamePattern)) {
wells.push_back (well);
}
}