https://github.com/feelpp/feelpp
Raw File
Tip revision: 77ff318a3d2f026f0e706896aecf570465004838 authored by Christophe Prud'homme on 23 February 2022, 16:15:49 UTC
electric does not support P3 @vincentchabannes
Tip revision: 77ff318
test_hermite.cpp
/* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=cpp:et:sw=4:ts=4:sts=4

  This file is part of the Feel library

  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
       Date: 2010-03-04

  Copyright (C) 2010 Universitť Joseph Fourier (Grenoble I)

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/
/**
   \file testhermite.cpp
   \author Christophe Prud'homme <christophe.prudhomme@feelpp.org>
   \date 2010-03-04
 */
#define BOOST_TEST_MODULE hermite polynomials test
// Boost.Test
#define USE_TEST 1
#include <boost/test/unit_test.hpp>
using boost::unit_test::test_suite;
#include <feel/feelpoly/polynomialset.hpp>
#include <feel/feelpoly/orthonormalpolynomialset.hpp>
#include <test_hermite.hpp>

#if defined(USE_TEST )
BOOST_AUTO_TEST_SUITE( hermite_testsuite )

BOOST_AUTO_TEST_SUITE( hermite_simplex_testsuite )

BOOST_AUTO_TEST_CASE( hermite1 )
{
    BOOST_TEST_MESSAGE( "Hermite(1)" );
    TestHermite<fem::Hermite<1, 3, Scalar, real64_type, Simplex> > t;
    t();
}
BOOST_AUTO_TEST_CASE( hermite2 )
{
    BOOST_TEST_MESSAGE( "Hermite(2)" );
    TestHermite<fem::Hermite<2, 3, Scalar, real64_type, Simplex> > t2;
    t2();
}
BOOST_AUTO_TEST_SUITE_END() // hermite_1d_simplex_testsuite

BOOST_AUTO_TEST_SUITE_END()

#else

int main()
{
    TestHermite<fem::Hermite<1, 3, Scalar, real64_type, Simplex> > t;
    t();
}

#endif // USE_TEST

back to top