From 7bb635278aa5b0fd859b6d18b13c9dfd957a39c0 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 26 Aug 2015 22:52:25 -0500 Subject: [PATCH] add a test for complex support in Function, TensorFunction --- tests/base/functions_13.cc | 55 ++++++++++++++++++++++++++++++++++ tests/base/functions_13.output | 2 ++ 2 files changed, 57 insertions(+) create mode 100644 tests/base/functions_13.cc create mode 100644 tests/base/functions_13.output 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 -- 2.39.5