Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Julia Docampo Sanchez
Nektar
Commits
0e8073ba
Commit
0e8073ba
authored
Jul 11, 2017
by
Kilian Lackhove
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
csvIO: fix regression tests
parent
fc4841b8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
4 deletions
+55
-4
utilities/FieldConvert/CMakeLists.txt
utilities/FieldConvert/CMakeLists.txt
+1
-0
utilities/FieldConvert/Tests/chan3D_csv.tst
utilities/FieldConvert/Tests/chan3D_csv.tst
+32
-0
utilities/FieldConvert/Tests/chan3D_pts.pts
utilities/FieldConvert/Tests/chan3D_pts.pts
+13
-0
utilities/FieldConvert/Tests/chan3D_pts.tst
utilities/FieldConvert/Tests/chan3D_pts.tst
+9
-4
No files found.
utilities/FieldConvert/CMakeLists.txt
View file @
0e8073ba
...
...
@@ -15,6 +15,7 @@ ADD_NEKTAR_TEST(bfs_tec_rng)
ADD_NEKTAR_TEST
(
bfs_vort
)
ADD_NEKTAR_TEST
(
bfs_vort_rng
)
ADD_NEKTAR_TEST
(
pointdatatofld
)
ADD_NEKTAR_TEST
(
chan3D_csv
)
ADD_NEKTAR_TEST
(
chan3D_pts
)
ADD_NEKTAR_TEST
(
chan3DH1D_meanmode
)
ADD_NEKTAR_TEST
(
chan3DH1D_plane
)
...
...
utilities/FieldConvert/Tests/chan3D_csv.tst
0 → 100644
View file @
0e8073ba
<?xml version="1.0" encoding="utf-8"?>
<test>
<description>
Convert a .fld file to .csv
</description>
<executable>
FieldConvert
</executable>
<parameters>
-f -e -m interppoints:fromxml=chan3D.xml:fromfld=chan3D.fld:topts=chan3D_pts.csv out.csv
</parameters>
<files>
<file
description=
"Session File"
>
chan3D.xml
</file>
<file
description=
"Session File"
>
chan3D.fld
</file>
<file
description=
"Session File"
>
chan3D_pts.csv
</file>
</files>
<metrics>
<metric
type=
"L2"
id=
"1"
>
<value
variable=
"x"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"y"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"z"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"u"
tolerance=
"1e-6"
>
1.98603e-15
</value>
<value
variable=
"v"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"w"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"p"
tolerance=
"1e-6"
>
2.82843
</value>
</metric>
<metric
type=
"Linf"
id=
"1"
>
<value
variable=
"x"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"y"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"z"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"u"
tolerance=
"1e-6"
>
1.77636e-15
</value>
<value
variable=
"v"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"w"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"p"
tolerance=
"1e-6"
>
4
</value>
</metric>
</metrics>
</test>
utilities/FieldConvert/Tests/chan3D_pts.pts
0 → 100644
View file @
0e8073ba
<?xml version="1.0" encoding="utf-8"?>
<NEKTAR>
<POINTS
DIM=
"3"
FIELDS=
"p"
>
-1.0 -1.0 -1.0 1.0E5
-1.0 -1.0 1.0 1.1E5
-1.0 1.0 1.0 1.2E5
-1.0 1.0 -1.0 1.3E5
1.0 -1.0 -1.0 1.4E5
1.0 -1.0 1.0 1.5E5
1.0 1.0 1.0 1.6E5
1.0 1.0 -1.0 1.7E5
</POINTS>
</NEKTAR>
utilities/FieldConvert/Tests/chan3D_pts.tst
View file @
0e8073ba
...
...
@@ -2,20 +2,26 @@
<test>
<description>
Convert a .fld file to .pts
</description>
<executable>
FieldConvert
</executable>
<parameters>
-f -e -m interppoints:fromxml=chan3D.xml:fromfld=chan3D.fld
chan3D_pts.pts out.
csv
</parameters>
<parameters>
-f -e -m interppoints:fromxml=chan3D.xml:fromfld=chan3D.fld
:topts=
chan3D_pts.pts out.
pts
</parameters>
<files>
<file
description=
"Session File"
>
chan3D.xml
</file>
<file
description=
"Session File"
>
chan3D.fld
</file>
<file
description=
"Session File"
>
chan3D_pts.
csv
</file>
<file
description=
"Session File"
>
chan3D_pts.
pts
</file>
</files>
<metrics>
<metric
type=
"L2"
id=
"1"
>
<value
variable=
"x"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"y"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"z"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"u"
tolerance=
"1e-6"
>
1.98603e-15
</value>
<value
variable=
"v"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"w"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"p"
tolerance=
"1e-6"
>
8
</value>
<value
variable=
"p"
tolerance=
"1e-6"
>
2.82843
</value>
</metric>
<metric
type=
"Linf"
id=
"1"
>
<value
variable=
"x"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"y"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"z"
tolerance=
"1e-4"
>
1.0
</value>
<value
variable=
"u"
tolerance=
"1e-6"
>
1.77636e-15
</value>
<value
variable=
"v"
tolerance=
"1e-6"
>
0
</value>
<value
variable=
"w"
tolerance=
"1e-6"
>
0
</value>
...
...
@@ -23,4 +29,3 @@
</metric>
</metrics>
</test>
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