Commit cb69ff3a authored by Dave Moxey's avatar Dave Moxey
Browse files

Fixed parallel tests for INS solver.

Fixed problem with Tester in RelWithDebInfo compile mode.
parent 11400482
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>3D channel flow, Hex elements, par(2), P=8</description>
<executable>IncNavierStokesSolver</executable>
......@@ -9,16 +9,16 @@
</files>
<metrics>
<metric type="L2" id="1">
<value variable="u" tolerance="1e-12">8.0442e-16</value>
<value variable="v" tolerance="1e-12">6.74106e-16</value>
<value variable="w" tolerance="1e-12">2.86244e-15</value>
<value variable="p" tolerance="1e-12">6.48523e-14</value>
<value variable="u" tolerance="1e-12">3.20512e-13</value>
<value variable="v" tolerance="1e-12">2.4627e-13</value>
<value variable="w" tolerance="1e-12">3.0802e-12</value>
<value variable="p" tolerance="1e-8">2.60141e-11</value>
</metric>
<metric type="Linf" id="2">
<value variable="u" tolerance="1e-12">5.23153e-15</value>
<value variable="v" tolerance="1e-12">3.86119e-15</value>
<value variable="w" tolerance="1e-12">4.83391e-13</value>
<value variable="p" tolerance="1e-12">6.32827e-13</value>
<value variable="u" tolerance="1e-12">1.17002e-12</value>
<value variable="v" tolerance="1e-12">8.49471e-13</value>
<value variable="w" tolerance="1e-12">1.74388e-11</value>
<value variable="p" tolerance="1e-8">9.24516e-11</value>
</metric>
</metrics>
</test>
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>3D channel flow, Tet elements, par(3), P=8</description>
<executable>IncNavierStokesSolver</executable>
......@@ -9,16 +9,16 @@
</files>
<metrics>
<metric type="L2" id="1">
<value variable="u" tolerance="1e-12">0</value>
<value variable="v" tolerance="1e-12">0</value>
<value variable="w" tolerance="1e-12">5.26988e-16</value>
<value variable="p" tolerance="1e-12">1.36862e-14</value>
<value variable="u" tolerance="1e-12">1.98811e-14</value>
<value variable="v" tolerance="1e-12">2.10102e-14</value>
<value variable="w" tolerance="1e-12">1.09623e-13</value>
<value variable="p" tolerance="1e-12">1.64394e-12</value>
</metric>
<metric type="Linf" id="2">
<value variable="u" tolerance="1e-12">1.45672e-15</value>
<value variable="v" tolerance="1e-12">1.4546e-15</value>
<value variable="w" tolerance="1e-12">3.01703e-14</value>
<value variable="p" tolerance="1e-12">4.72511e-13</value>
<value variable="u" tolerance="1e-12">8.3757e-14</value>
<value variable="v" tolerance="1e-12">9.56528e-14</value>
<value variable="w" tolerance="1e-12">7.71383e-13</value>
<value variable="p" tolerance="1e-12">7.46558e-12</value>
</metric>
</metrics>
</test>
......@@ -9,16 +9,16 @@
</files>
<metrics>
<metric type="L2" id="1">
<value variable="u" tolerance="1e-12">0</value>
<value variable="v" tolerance="1e-12">0</value>
<value variable="w" tolerance="1e-12">5.26988e-16</value>
<value variable="p" tolerance="1e-12">1.36862e-14</value>
<value variable="u" tolerance="1e-12">1.98811e-14</value>
<value variable="v" tolerance="1e-12">2.10102e-14</value>
<value variable="w" tolerance="1e-12">1.09623e-13</value>
<value variable="p" tolerance="1e-12">1.64394e-12</value>
</metric>
<metric type="Linf" id="2">
<value variable="u" tolerance="1e-12">1.45672e-15</value>
<value variable="v" tolerance="1e-12">1.4546e-15</value>
<value variable="w" tolerance="1e-12">3.01703e-14</value>
<value variable="p" tolerance="1e-12">4.72511e-13</value>
<value variable="u" tolerance="1e-12">8.3757e-14</value>
<value variable="v" tolerance="1e-12">9.56528e-14</value>
<value variable="w" tolerance="1e-12">7.71383e-13</value>
<value variable="p" tolerance="1e-12">7.46558e-12</value>
</metric>
</metrics>
</test>
......@@ -22,6 +22,10 @@ SET(TESTER_HEADERS
ADD_DEFINITIONS(-DBUILD_PATH="${CMAKE_BINARY_DIR}")
IF(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
ADD_DEFINITIONS(-DRELWITHDEBINFO)
ENDIF()
ADD_EXECUTABLE(Tester ${TESTER_SOURCES} ${ARGN})
TARGET_LINK_LIBRARIES(Tester
${Boost_FILESYSTEM_LIBRARY}
......
......@@ -74,7 +74,9 @@ namespace Nektar
const std::string TestData::GetExecutable() const
{
std::string execname = m_executable;
#if !defined(NDEBUG)
#if defined(RELWITHDEBINFO)
execname += "-rg";
#elif !defined(NDEBUG)
execname += "-g";
#endif
return execname;
......
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