Skip to content
Snippets Groups Projects
Commit 603d9327 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Merge branch 'fix/dune_deprecated_macro' into 'master'

Replace DUNE_DEPRECATED by [[deprecated]]

See merge request !65
parents 4e843569 1179e8ae
No related branches found
No related tags found
2 merge requests!66Fix/pipeline,!65Replace DUNE_DEPRECATED by [[deprecated]]
Pipeline #46949 passed
Showing with 33 additions and 20 deletions
...@@ -6,10 +6,23 @@ before_script: ...@@ -6,10 +6,23 @@ before_script:
- duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-fufem.git - duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-fufem.git
- duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-solvers.git - duneci-install-module https://git.imp.fu-berlin.de/agnumpde/dune-solvers.git
dune:2.7 gcc: dune:2.8 gcc C++17:
image: registry.dune-project.org/docker/ci/dune:2.7-debian-10-gcc-8-17 image: registry.dune-project.org/docker/ci/dune:2.8-debian-10-gcc-8-17
before_script: script: duneci-standard-test
variables:
DUNECI_BRANCH: releases/2.8
dune:2.8 gcc C++20:
image: registry.dune-project.org/docker/ci/dune:2.8-debian-11-gcc-9-20
script: duneci-standard-test
variables:
DUNECI_BRANCH: releases/2.8
dune:2.8 clang C++17:
image: registry.dune-project.org/docker/ci/dune:2.8-debian-10-clang-7-libcpp-17
script: duneci-standard-test script: duneci-standard-test
variables:
DUNECI_BRANCH: releases/2.8
dune:git clang C++17: dune:git clang C++17:
image: registry.dune-project.org/docker/ci/dune:git-debian-10-clang-7-libcpp-17 image: registry.dune-project.org/docker/ci/dune:git-debian-10-clang-7-libcpp-17
......
...@@ -196,8 +196,8 @@ FEAssembler ...@@ -196,8 +196,8 @@ FEAssembler
typedef Dune::FieldMatrix<double, blocksize, blocksize> MatrixBlock; typedef Dune::FieldMatrix<double, blocksize, blocksize> MatrixBlock;
public: public:
const Basis [[deprecated("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::FEAssembler with dune-functions bases.")]]
DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::FEAssembler with dune-functions bases.") basis_; const Basis basis_;
/** \brief Partition type on which to assemble /** \brief Partition type on which to assemble
* *
......
...@@ -182,7 +182,7 @@ public: ...@@ -182,7 +182,7 @@ public:
LocalADOLCStiffness(const Dune::LocalEnergy<GridView, LocalFiniteElement, AVectorType>* energy) LocalADOLCStiffness(const Dune::LocalEnergy<GridView, LocalFiniteElement, AVectorType>* energy)
: localEnergy_(energy) : localEnergy_(energy)
{} DUNE_DEPRECATED_MSG("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::LocalADOLCStiffness with LocalView concept!") {} [[deprecated("dune-elasticity with dune-fufem bases is now deprecated. Use Elasticity::LocalADOLCStiffness with LocalView concept!")]]
/** \brief Compute the energy at the current configuration */ /** \brief Compute the energy at the current configuration */
virtual RT energy (const Entity& e, virtual RT energy (const Entity& e,
......
...@@ -55,8 +55,8 @@ public: ...@@ -55,8 +55,8 @@ public:
VectorType& localGradient) = 0; VectorType& localGradient) = 0;
// assembled data // assembled data
Dune::Matrix<Dune::FieldMatrix<RT,blocksize,blocksize> > [[deprecated("Use dune-functions powerBases with LocalView concept. See Dune::Elasticity::LocalFEStiffness")]]
DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Dune::Elasticity::LocalFEStiffness") A_; Dune::Matrix<Dune::FieldMatrix<RT,blocksize,blocksize> > A_;
}; };
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Dune { namespace Dune {
template<class GridView, class LocalFiniteElement, class field_type=double> template<class GridView, class LocalFiniteElement, class field_type=double>
class DUNE_DEPRECATED_MSG("Use Elasticity::LocalIntegralEnergy with Elasticity::ExpHenckyDensity") class [[deprecated("Use Elasticity::LocalIntegralEnergy with Elasticity::ExpHenckyDensity")]]
ExpHenckyEnergy ExpHenckyEnergy
: public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type> : public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type>
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Dune { namespace Dune {
template<class GridView, class LocalFiniteElement, class field_type=double> template<class GridView, class LocalFiniteElement, class field_type=double>
class DUNE_DEPRECATED_MSG("Use Elasticity::LocalIntegralEnergy with Elasticity::HenckyDensity") class [[deprecated("Use Elasticity::LocalIntegralEnergy with Elasticity::HenckyDensity")]]
HenckyEnergy HenckyEnergy
: public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type> : public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type>
{ {
......
...@@ -136,8 +136,8 @@ public: ...@@ -136,8 +136,8 @@ public:
const std::vector<Dune::FieldVector<field_type,gridDim> >& localConfiguration) const; const std::vector<Dune::FieldVector<field_type,gridDim> >& localConfiguration) const;
protected: protected:
const std::shared_ptr<Elasticity::LocalDensity<gridDim,field_type,DT>> [[deprecated("Use dune-functions powerBases with LocalView concept. See Elasticity::LocalIntegralEnergy")]]
DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::LocalIntegralEnergy") localDensity_ = nullptr; const std::shared_ptr<Elasticity::LocalDensity<gridDim,field_type,DT>> localDensity_ = nullptr;
}; };
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Dune { namespace Dune {
template<class GridView, class LocalFiniteElement, class field_type=double> template<class GridView, class LocalFiniteElement, class field_type=double>
class DUNE_DEPRECATED_MSG("Use Elasticity::LocalIntegralEnergy with Elasticity::MooneyRivlinDensity") class [[deprecated("Use Elasticity::LocalIntegralEnergy with Elasticity::MooneyRivlinDensity")]]
MooneyRivlinEnergy MooneyRivlinEnergy
: public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type> : public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type>
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Dune { namespace Dune {
template<class GridView, class LocalFiniteElement, class field_type=double> template<class GridView, class LocalFiniteElement, class field_type=double>
class DUNE_DEPRECATED_MSG("Use Elasticity::LocalIntegralEnergy with Elasticity::NeoHookeDensity") class [[deprecated("Use Elasticity::LocalIntegralEnergy with Elasticity::NeoHookeDensity")]]
NeoHookeEnergy NeoHookeEnergy
: public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type> : public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type>
{ {
......
...@@ -168,8 +168,8 @@ public: ...@@ -168,8 +168,8 @@ public:
private: private:
/** \brief The Neumann boundary */ /** \brief The Neumann boundary */
const std::shared_ptr<BoundaryPatch<GridView>> [[deprecated("Use dune-functions powerBases with LocalView concept. See Elasticity::NeumannEnergy")]]
DUNE_DEPRECATED_MSG("Use dune-functions powerBases with LocalView concept. See Elasticity::NeumannEnergy") neumannBoundary_; const std::shared_ptr<BoundaryPatch<GridView>> neumannBoundary_;
/** \brief The function implementing the Neumann data */ /** \brief The function implementing the Neumann data */
const std::shared_ptr<std::function<Dune::FieldVector<double,dim>(Dune::FieldVector<ctype,dim>)>> neumannFunction_; const std::shared_ptr<std::function<Dune::FieldVector<double,dim>(Dune::FieldVector<ctype,dim>)>> neumannFunction_;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
namespace Dune { namespace Dune {
template<class GridView, class LocalFiniteElement, class field_type=double> template<class GridView, class LocalFiniteElement, class field_type=double>
class DUNE_DEPRECATED_MSG("Use Elasticity::LocalIntegralEnergy with Elasticity::StVenantKirchhoffDensity") class [[deprecated("Use Elasticity::LocalIntegralEnergy with Elasticity::StVenantKirchhoffDensity")]]
StVenantKirchhoffEnergy StVenantKirchhoffEnergy
: public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type> : public Elasticity::LocalIntegralEnergy<GridView,LocalFiniteElement,field_type>
{ {
......
...@@ -90,9 +90,8 @@ public: ...@@ -90,9 +90,8 @@ public:
} }
private: private:
[[deprecated("Use dune-functions powerBases with LocalView concept. See Elasticity::SumEnergy")]]
std::shared_ptr<LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,dim> > > > std::shared_ptr<LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,dim> > > > a_;
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_; std::shared_ptr<LocalEnergy<GridView,LocalFiniteElement,std::vector<FieldVector<field_type,dim> > > > b_;
......
#include <config.h> #include <config.h>
#include <iomanip>
// Includes for the ADOL-C automatic differentiation library // Includes for the ADOL-C automatic differentiation library
// Need to come before (almost) all others. // Need to come before (almost) all others.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment