Commit 5fb468b3 authored by Dave Moxey's avatar Dave Moxey
Browse files

Add PETSc regression tests (2D/3D Helmholtz demos)

parent d168eee3
......@@ -112,6 +112,13 @@ ADD_NEKTAR_TEST(LinearAdvDiffReact2D_P7_Modes)
ADD_NEKTAR_TEST(Deriv3D_Homo1D)
ADD_NEKTAR_TEST(Deriv3D_Homo2D)
# PETSc solver tests
IF (NEKTAR_USE_PETSC)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_petsc_full)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_petsc_ml)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_petsc_sc)
ENDIF (NEKTAR_USE_PETSC)
IF (NEKTAR_USE_MPI)
ADD_NEKTAR_TEST(Helmholtz1D_CG_P8_periodic_par3)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_xxt_full)
......@@ -122,11 +129,10 @@ IF (NEKTAR_USE_MPI)
ADD_NEKTAR_TEST(Helmholtz3D_CG_Prism_iter_ml_par3)
ADD_NEKTAR_TEST_LENGTHY(Helmholtz3D_CG_Hex_AllBCs_xxt_sc_par3)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P14_xxt_per)
#
# TODO: This test fails due to a bug with Dirichlet bnd conditions.
# To be resolved in a separate branch.
#
# ADD_NEKTAR_TEST(Helmholtz3D_CG_Tet_iter_global_par3)
# TODO: This test fails due to a bug with Dirichlet bnd conditions.
# To be resolved in a separate branch.
# ADD_NEKTAR_TEST(Helmholtz3D_CG_Tet_iter_global_par3)
ADD_NEKTAR_TEST_LENGTHY(Helmholtz2D_HDG_P7_Modes_AllBCs_par2)
ADD_NEKTAR_TEST(Helmholtz3D_HDG_Prism_par2)
......@@ -138,4 +144,8 @@ IF (NEKTAR_USE_MPI)
ADD_NEKTAR_TEST(Helmholtz3D_HDG_Hex_AllBCs_scotch_par2)
ENDIF (NEKTAR_USE_SCOTCH)
IF (NEKTAR_USE_PETSC)
ADD_NEKTAR_TEST(Helmholtz2D_CG_P7_Modes_AllBCs_petsc_sc_par3)
ADD_NEKTAR_TEST(Helmholtz3D_CG_Hex_AllBCs_petsc_sc_par3)
ENDIF (NEKTAR_USE_PETSC)
ENDIF (NEKTAR_USE_MPI)
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Helmholtz 2D CG with P=7, PETSc full</description>
<executable>Helmholtz2D</executable>
<parameters>-I GlobalSysSoln=PETScFull Helmholtz2D_P7_AllBCs.xml</parameters>
<files>
<file description="Session File">Helmholtz2D_P7_AllBCs.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-12">0.047035</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-12">0.0959695</value>
</metric>
</metrics>
</test>
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Helmholtz 2D CG with P=7, all BCs, PETSc ML</description>
<executable>Helmholtz2D</executable>
<parameters>-I GlobalSysSoln=PETScMultiLevelStaticCond Helmholtz2D_P7_AllBCs.xml</parameters>
<files>
<file description="Session File">Helmholtz2D_P7_AllBCs.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-12">0.00888037</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-12">0.0101781</value>
</metric>
</metrics>
</test>
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Helmholtz 2D CG with P=7, all BCs, PETSc sc</description>
<executable>Helmholtz2D</executable>
<parameters>-I GlobalSysSoln=PETScStaticCond Helmholtz2D_P7_AllBCs.xml</parameters>
<files>
<file description="Session File">Helmholtz2D_P7_AllBCs.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-12">0.00888037</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-12">0.0101781</value>
</metric>
</metrics>
</test>
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Helmholtz 2D CG with P=7, all BCs, PETSc sc, par(3)</description>
<executable>Helmholtz2D</executable>
<parameters>--use-metis -I GlobalSysSoln=PETScStaticCond Helmholtz2D_P7_AllBCs.xml</parameters>
<processes>3</processes>
<files>
<file description="Session File">Helmholtz2D_P7_AllBCs.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-12">0.00888037</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-12">0.0101781</value>
</metric>
</metrics>
</test>
<?xml version="1.0" encoding="utf-8" ?>
<test>
<description>Helmholtz 3D CG, hexes, mixed BCs, PETSc sc, par(3)</description>
<executable>Helmholtz3D</executable>
<parameters>--use-metis -I GlobalSysSoln=PETScStaticCond Helmholtz3D_Hex_AllBCs_P6.xml</parameters>
<processes>3</processes>
<files>
<file description="Session File">Helmholtz3D_Hex_AllBCs_P6.xml</file>
</files>
<metrics>
<metric type="L2" id="1">
<value tolerance="1e-12">0.000416575</value>
</metric>
<metric type="Linf" id="2">
<value tolerance="1e-12">0.000871589</value>
</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 to comment