Commit 0e8073ba by Kilian Lackhove

csvIO: fix regression tests

parent fc4841b8
......@@ -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)
......
<?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>
<?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>
......@@ -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>
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 sign in to comment