From 94be3c79a1f39958ba31a9962fa1318b27b72a33 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Wed, 15 Nov 2017 13:44:12 +0100 Subject: [PATCH] Add a unifying header for auto-differentation. --- include/deal.II/differentiation/ad.h | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 include/deal.II/differentiation/ad.h diff --git a/include/deal.II/differentiation/ad.h b/include/deal.II/differentiation/ad.h new file mode 100644 index 0000000000..5e6f28a7ef --- /dev/null +++ b/include/deal.II/differentiation/ad.h @@ -0,0 +1,51 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2016 - 2017 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. +// +// --------------------------------------------------------------------- + +#ifndef dealii_differentiation_ad_h +#define dealii_differentiation_ad_h + +#include + +#if defined(DEAL_II_WITH_ADOLC) || defined(DEAL_II_WITH_TRILINOS) + +DEAL_II_NAMESPACE_OPEN + +/** +* A namespace that encapsulates various classes and helper functions related +* to automatic and symbolic differentiation. +* +* @ingroup auto_symb_diff +*/ +namespace Differentiation +{ + /** + * Wrappers for automatic differentiation libraries. Currently there is support + * for the following libraries: + * - Adol-C + * - Sacado (a component of Trilinos) + * + * @ingroup auto_symb_diff + */ + namespace AD + { + + } +} + +DEAL_II_NAMESPACE_CLOSE + +#endif + +#endif -- 2.39.5