Commit 5f1edc79 authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Updated L2 and LInf metrics to match nan and inf.

parent fbbed34f
......@@ -50,7 +50,7 @@ namespace Nektar
// name if it exists: first field is variable name, second field is L2
// error.
m_regex = "^L 2 error\\s*(?:\\(variable "
"(\\w+)\\))?\\s*:\\s*([+-]?\\d.+\\d|-?0).*";
"(\\w+)\\))?\\s*:\\s*([+-]?\\d.+\\d|-?0|[+-]?nan|[+-]?inf).*";
// Find the L2 error to match against.
TiXmlElement *value = metric->FirstChildElement("value");
......
......@@ -50,7 +50,7 @@ namespace Nektar
// name if it exists: first field is variable name, second field is L2
// error.
m_regex = "^L inf\\w* error\\s*(?:\\(variable "
"(\\w+)\\))?\\s*:\\s*([+-]?\\d.+\\d|-?0).*";
"(\\w+)\\))?\\s*:\\s*([+-]?\\d.+\\d|-?0|[+-]?nan|[+-]?inf).*";
// Find the L2 error to match against.
TiXmlElement *value = metric->FirstChildElement("value");
......
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