Commit ea0c50dc authored by Dave Moxey's avatar Dave Moxey

Fixing small bug in Linf regex and tester program.

parent dc61ad0d
......@@ -49,7 +49,7 @@ namespace Nektar
// Set up the regular expression. This (optionally) matches a variable
// name if it exists: first field is variable name, second field is L2
// error.
m_regex = "^L inf\\w+ error\\s*(?:\\(variable "
m_regex = "^L inf\\w* error\\s*(?:\\(variable "
"(\\w+)\\))?\\s*:\\s*([+-]?\\d.+\\d|0).*";
// Find the L2 error to match against.
......
......@@ -269,7 +269,11 @@ int main(int argc, char *argv[])
fs::remove_all(tmpDir);
// Save any changes.
file.SaveFile();
if (vm.count("generate-metric") > 0 ||
vm.count("generate-all-metrics") > 0)
{
file.SaveFile();
}
// Return status of test. 0 = PASS, 1 = FAIL
return status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment