diff --git a/dune/elasticity/assemblers/feassembler.hh b/dune/elasticity/assemblers/feassembler.hh index 62d1751d44ac6d68c35b59cec1e6567bb2f02bb3..35cea428f2e7a74edbd4c3050ab3fe9924b09857 100644 --- a/dune/elasticity/assemblers/feassembler.hh +++ b/dune/elasticity/assemblers/feassembler.hh @@ -179,7 +179,7 @@ namespace Dune /** \brief A global FE assembler for variational problems (old fufem bases version) */ template <class Basis, class VectorType > -class DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::FEAssembler with dune-functions bases.") +class FEAssembler { @@ -195,7 +195,8 @@ FEAssembler typedef Dune::FieldMatrix<double, blocksize, blocksize> MatrixBlock; public: - const Basis basis_; + const Basis + DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::FEAssembler with dune-functions bases.") basis_; /** \brief Partition type on which to assemble * diff --git a/dune/elasticity/assemblers/localadolcstiffness.hh b/dune/elasticity/assemblers/localadolcstiffness.hh index 59fe3ea8769a277d73b731c2d4a99baa51e13f20..fa308f5a265b3f2ba170cb75dd2ba7ae0345daaa 100644 --- a/dune/elasticity/assemblers/localadolcstiffness.hh +++ b/dune/elasticity/assemblers/localadolcstiffness.hh @@ -136,7 +136,7 @@ assembleGradientAndHessian(const LocalView& localView, /** \brief Assembles energy gradient and Hessian with ADOL-C (automatic differentiation) */ template<class GridView, class LocalFiniteElement, class VectorType> -class DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::LocalADOLCStiffness with LocalView concept!") +class LocalADOLCStiffness : public LocalFEStiffness<GridView,LocalFiniteElement,VectorType> { @@ -158,7 +158,7 @@ public: LocalADOLCStiffness(const Dune::LocalEnergy<GridView, LocalFiniteElement, AVectorType>* energy) : localEnergy_(energy) - {} + {} DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::LocalADOLCStiffness with LocalView concept!") /** \brief Compute the energy at the current configuration */ virtual RT energy (const Entity& e, diff --git a/dune/elasticity/assemblers/localenergy.hh b/dune/elasticity/assemblers/localenergy.hh index f4c56f3ecfa97bf26bce6522883796067c54948c..1852cb223f65468d07f953fe44364567898974e3 100644 --- a/dune/elasticity/assemblers/localenergy.hh +++ b/dune/elasticity/assemblers/localenergy.hh @@ -26,9 +26,11 @@ public: namespace Dune { +// WARNING: This interface is deprecated and will be removed! + /** \brief Base class for energies defined by integrating over one grid element */ template<class GridView, class LocalFiniteElement, class VectorType> -class DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::LocalEnergy with LocalView concept!") +class LocalEnergy { typedef typename VectorType::value_type::field_type RT; diff --git a/dune/elasticity/assemblers/localfestiffness.hh b/dune/elasticity/assemblers/localfestiffness.hh index 5aa1f982e88d3193cd9d9be0241f1d2fcff1dddd..ecb66f0f4cf53297f1280745115c874b75773a2d 100644 --- a/dune/elasticity/assemblers/localfestiffness.hh +++ b/dune/elasticity/assemblers/localfestiffness.hh @@ -30,7 +30,7 @@ public: template<class GridView, class LocalFiniteElement, class VectorType> -class DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::LocalFEStiffness with LocalView concept!") +class LocalFEStiffness : public Dune::LocalEnergy<GridView, LocalFiniteElement, VectorType> { @@ -55,7 +55,8 @@ public: VectorType& localGradient) = 0; // assembled data - Dune::Matrix<Dune::FieldMatrix<RT,blocksize,blocksize> > A_; + Dune::Matrix<Dune::FieldMatrix<RT,blocksize,blocksize> > + DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Dune::Elasticity::LocalFEStiffness") A_; }; diff --git a/dune/elasticity/materials/localintegralenergy.hh b/dune/elasticity/materials/localintegralenergy.hh index 5b5df9b3a98a8feb18a898dafe54928ffdcd91b1..97db2616b8835ba44af0cf81bad0ee7add7a34fc 100644 --- a/dune/elasticity/materials/localintegralenergy.hh +++ b/dune/elasticity/materials/localintegralenergy.hh @@ -97,7 +97,7 @@ energy(const LocalView& localView, namespace Dune { template<class GridView, class LocalFiniteElement, class field_type=double> -class DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::LocalIntegralEnergy") +class LocalIntegralEnergy : public LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,GridView::dimension>>> { @@ -125,7 +125,8 @@ public: const std::vector<Dune::FieldVector<field_type,gridDim> >& localConfiguration) const; protected: - const std::shared_ptr<Elasticity::LocalDensity<gridDim,field_type,DT>> localDensity_ = nullptr; + const std::shared_ptr<Elasticity::LocalDensity<gridDim,field_type,DT>> + DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::LocalIntegralEnergy") localDensity_ = nullptr; }; diff --git a/dune/elasticity/materials/neumannenergy.hh b/dune/elasticity/materials/neumannenergy.hh index 2bb416eec2262c1c203f5cbd69c88a8978019c5d..ea62bdcbd147be512da772bf4013ad6df7431b29 100644 --- a/dune/elasticity/materials/neumannenergy.hh +++ b/dune/elasticity/materials/neumannenergy.hh @@ -98,7 +98,7 @@ private: namespace Dune { template<class GridView, class LocalFiniteElement, class field_type=double> -class DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::NeumannEnergy") +class NeumannEnergy : public LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,GridView::dimension> > > { @@ -174,7 +174,8 @@ public: private: /** \brief The Neumann boundary */ - const BoundaryPatch<GridView>* neumannBoundary_; + const BoundaryPatch<GridView>* + DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::NeumannEnergy") neumannBoundary_; /** \brief The function implementing the Neumann data */ const Dune::VirtualFunction<Dune::FieldVector<double,dim>, Dune::FieldVector<double,dim> >* neumannFunction_; diff --git a/dune/elasticity/materials/sumenergy.hh b/dune/elasticity/materials/sumenergy.hh index 209924678da7438f649f412c95ab7befa7fc2469..ae0fd22acd0148855a9271d5f8df094461fab81c 100644 --- a/dune/elasticity/materials/sumenergy.hh +++ b/dune/elasticity/materials/sumenergy.hh @@ -52,7 +52,7 @@ private: namespace Dune { template<class GridView, class LocalFiniteElement, class field_type=double> -class DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::SumEnergy") +class SumEnergy : public LocalEnergy<GridView,LocalFiniteElement,std::vector<Dune::FieldVector<field_type,GridView::dimension> > > { @@ -85,7 +85,8 @@ public: private: - std::shared_ptr<LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,dim> > > > a_; + std::shared_ptr<LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,dim> > > > + DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::SumEnergy") a_; std::shared_ptr<LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,dim> > > > b_;