Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julia
Nektar
Commits
5f1edc79
Commit
5f1edc79
authored
Jan 31, 2014
by
Chris Cantwell
Browse files
Updated L2 and LInf metrics to match nan and inf.
parent
fbbed34f
Changes
2
Show whitespace changes
Inline
Side-by-side
tests/MetricL2.cpp
View file @
5f1edc79
...
...
@@ -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"
);
...
...
tests/MetricLInf.cpp
View file @
5f1edc79
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment