From: Matthias Maier Date: Thu, 27 Aug 2015 03:52:25 +0000 (-0500) Subject: add a test for complex support in Function, TensorFunction X-Git-Tag: v8.4.0-rc2~541^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb635278aa5b0fd859b6d18b13c9dfd957a39c0;p=dealii.git add a test for complex support in Function, TensorFunction --- diff --git a/tests/base/functions_13.cc b/tests/base/functions_13.cc new file mode 100644 index 0000000000..4cad108c96 --- /dev/null +++ b/tests/base/functions_13.cc @@ -0,0 +1,55 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2007 - 2015 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, 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. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +// Check for suport of std::complex as Number template argument + +#include "../tests.h" +#include +#include + +#include + +using namespace dealii; + +template +class MyFunctionTime : dealii::FunctionTime +{ +}; + +template +class MyFunction : dealii::Function +{ +}; + +template +class MyTensorFunction : dealii::TensorFunction +{ +}; + +int main() +{ + initlog(); + + MyFunction<1, std::complex > function_1; + MyFunction<2, std::complex > function_2; + MyFunction<3, std::complex > function_3; + + MyTensorFunction<1, 1, std::complex > tensor_function_1; + MyTensorFunction<2, 2, std::complex > tensor_function_2; + MyTensorFunction<3, 3, std::complex > tensor_function_3; + + deallog << "OK" << std::endl; +} diff --git a/tests/base/functions_13.output b/tests/base/functions_13.output new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/base/functions_13.output @@ -0,0 +1,2 @@ + +DEAL::OK