mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ParallelFileMerger: Remove old local regex and fileWaringRegex_ instead
This commit is contained in:
@@ -65,13 +65,12 @@ public:
|
|||||||
|
|
||||||
void operator()(const fs::path& file)
|
void operator()(const fs::path& file)
|
||||||
{
|
{
|
||||||
const static boost::regex regex("[^.]+\\.(\\d+)\\.[^.]+");
|
|
||||||
boost::smatch matches;
|
boost::smatch matches;
|
||||||
std::string filename = file.filename().native();
|
std::string filename = file.filename().native();
|
||||||
|
|
||||||
if ( boost::regex_match(filename, matches, fileWarningRegex_) )
|
if ( boost::regex_match(filename, matches, fileWarningRegex_) )
|
||||||
{
|
{
|
||||||
std::string rank = boost::regex_replace(filename, regex, "\\1");
|
std::string rank = boost::regex_replace(filename, fileWarningRegex_, "\\1");
|
||||||
|
|
||||||
if( boost::regex_match(filename, logFileRegex_) )
|
if( boost::regex_match(filename, logFileRegex_) )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user