diff --git a/CHANGELOG b/CHANGELOG index 52c4b7e8f5984f0fbb4f97fe531b9bb9ad63f858..61c21fc265c975d5c702fadb096312f40ebd89d5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -13,6 +13,8 @@ Differences Between DuMuX 2.7 and DuMuX 2.8 with flow in a porous medium have been added. * IMMEDIATE INTERFACE CHANGES not allowing/requiring a deprecation period: + - The use and support for SGrid is dropped. SGrid is deprecated in Dune 2.4. + Use YaspGrid instead. * Deprecated PROPERTY and PARAMETER NAMES, to be removed after 2.8: BEWARE: The compiler will not print any warning if a deprecated property or parameter name @@ -23,7 +25,7 @@ Differences Between DuMuX 2.7 and DuMuX 2.8 * Deprecated MEMBER FUNCTIONS, to be removed after 2.8: - The method simulate(Scalar dtInitial, Scalar tEnd) from MultiDomainProblem, - it is unused and wil be dropped. + it is unused and will be dropped. * Deprecated protected MEMBER VARIABLES, to be removed after 2.8: BEWARE: Older compilers will not print any warning if a deprecated protected member variable diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressure2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressure2p.hh index 4b5390835ad63480756ed53c5e125570559a4f90..2e846f5a9fa632d7d5ac267c92141d0751ff97f2 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressure2p.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressure2p.hh @@ -63,7 +63,7 @@ namespace Dumux * * Remark1: only for 2-D quadrilateral grid * - * Remark2: implemented for UGGrid, ALUGrid, or SGrid/YaspGrid + * Remark2: implemented for UGGrid, ALUGrid, or YaspGrid * *\tparam TypeTag The problem Type Tag */ @@ -553,8 +553,7 @@ void FvMpfaL2dPressure2p<TypeTag>::initializeMatrix() // get 'nextIsIt' switch (GET_PROP_VALUE(TypeTag, GridImplementation)) { - // for SGrid and YaspGrid - case GridTypeIndices::sGrid: + // for YaspGrid case GridTypeIndices::yaspGrid: { if (nextIsIt == isEndIt) @@ -650,8 +649,7 @@ void FvMpfaL2dPressure2p<TypeTag>::initializeMatrix() // get 'nextIsIt' switch (GET_PROP_VALUE(TypeTag, GridImplementation)) { - // for SGrid and YaspGrid - case GridTypeIndices::sGrid: + // for YaspGrid case GridTypeIndices::yaspGrid: { if (nextIsIt == isEndIt) @@ -780,8 +778,7 @@ void FvMpfaL2dPressure2p<TypeTag>::storeInteractionVolumeInfo() //get isIt14 switch (GET_PROP_VALUE(TypeTag, GridImplementation)) { - // for SGrid and YaspGrid - case GridTypeIndices::sGrid: + // for YaspGrid case GridTypeIndices::yaspGrid: { if (isIt14 == isIt12End) diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressurevelocity2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressurevelocity2p.hh index 269e53d2e539111046d3af21b455eb603a422702..92aa2d0266d75e97f98107e438b91e8ea0d1a3e5 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressurevelocity2p.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2dpressurevelocity2p.hh @@ -39,7 +39,7 @@ namespace Dumux * * Remark1: only for 2-D quadrilateral grids! * - * Remark2: can use UGGrid, ALUGrid or SGrid/YaspGrid! + * Remark2: can use UGGrid, ALUGrid, or YaspGrid * * \tparam TypeTag The problem Type Tag */ diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressure2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressure2p.hh index c899dcb67173af880f185b280e42d58e2143779b..52e2169f95f0eefe615b130122a340f5e6ab0faf 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressure2p.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressure2p.hh @@ -58,7 +58,7 @@ namespace Dumux * * Remark1: only for 2-D quadrilateral grid * - * Remark2: implemented for UGGrid, ALUGrid, or SGrid/YaspGrid + * Remark2: implemented for UGGrid, ALUGrid, or YaspGrid * *\tparam TypeTag The problem Type Tag */ @@ -528,8 +528,7 @@ void FvMpfaO2dPressure2p<TypeTag>::initializeMatrix() // get 'nextIsIt' switch (GET_PROP_VALUE(TypeTag, GridImplementation)) { - // for SGrid and YaspGrid - case GridTypeIndices::sGrid: + // for YaspGrid case GridTypeIndices::yaspGrid: { if (nextIsIt == isEndIt) @@ -628,8 +627,7 @@ void FvMpfaO2dPressure2p<TypeTag>::initializeMatrix() // get 'nextIsIt' switch (GET_PROP_VALUE(TypeTag, GridImplementation)) { - // for SGrid and YaspGrid - case GridTypeIndices::sGrid: + // for YaspGrid case GridTypeIndices::yaspGrid: { if (nextIsIt == isEndIt) @@ -774,8 +772,7 @@ void FvMpfaO2dPressure2p<TypeTag>::storeInteractionVolumeInfo() //get isIt14 switch (GET_PROP_VALUE(TypeTag, GridImplementation)) { - // for SGrid and YaspGrid - case GridTypeIndices::sGrid: + // for YaspGrid case GridTypeIndices::yaspGrid: { if (isIt14 == isIt12End) diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressurevelocity2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressurevelocity2p.hh index 81687cc11df8eea8f2c6ad9272020657005f1c15..212741b305dd757bfe1e980e7699ea96bcb9e1e8 100644 --- a/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressurevelocity2p.hh +++ b/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2dpressurevelocity2p.hh @@ -38,7 +38,7 @@ namespace Dumux * * Remark1: only for 2-D quadrilateral grids! * - * Remark2: can use UGGrid, ALUGrid or SGrid/YaspGrid! + * Remark2: can use UGGrid, ALUGrid, or YaspGrid * * \tparam TypeTag The problem Type Tag */ diff --git a/dumux/decoupled/common/fv/mpfa/fvmpfaproperties.hh b/dumux/decoupled/common/fv/mpfa/fvmpfaproperties.hh index 9455ea6520786cfed891d05331bf6c86d3a33a99..9156438317ac63ce60e3e756e84414ed98b1c3de 100644 --- a/dumux/decoupled/common/fv/mpfa/fvmpfaproperties.hh +++ b/dumux/decoupled/common/fv/mpfa/fvmpfaproperties.hh @@ -30,7 +30,6 @@ // dumux environment #include <dumux/decoupled/common/decoupledproperties.hh> #include <dune/grid/yaspgrid.hh> -#include <dune/grid/sgrid.hh> #if HAVE_ALUGRID #include <dune/grid/alugrid/2d/alugrid.hh> #include <dune/grid/alugrid/3d/alugrid.hh> @@ -53,8 +52,6 @@ struct GridTypes public: // static const int any = 0; - //SGrid - static const int sGrid = 1; //YaspGrid static const int yaspGrid = 2; //UGGrid @@ -75,12 +72,6 @@ struct GridImp<Dune::YaspGrid<dim>, dim> static const int imp = GridTypes::yaspGrid; }; -template<int dim> -struct GridImp<Dune::SGrid<dim, dim>, dim> -{ - static const int imp = GridTypes::sGrid; -}; - #if HAVE_ALUGRID || HAVE_DUNE_ALUGRID template<int dim> struct GridImp<Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming>, dim> diff --git a/dumux/io/adaptivegridrestart.hh b/dumux/io/adaptivegridrestart.hh index c5e7c2064ce64c3b2723374cb03732bd7e2dce70..52f364c1db2b3e8b68579d80ff52c6ec7e60b0c4 100644 --- a/dumux/io/adaptivegridrestart.hh +++ b/dumux/io/adaptivegridrestart.hh @@ -23,6 +23,8 @@ #ifndef DUMUX_ADAPTIVEGRIDRESTART_HH #define DUMUX_ADAPTIVEGRIDRESTART_HH +#include <dune/common/deprecated.hh> + #include <dune/grid/yaspgrid.hh> #include <dune/grid/sgrid.hh> #if HAVE_ALUGRID @@ -61,7 +63,9 @@ struct GridRestartCheck<Dune::YaspGrid<dim>, dim> }; template<int dim> -struct GridRestartCheck<Dune::SGrid<dim, dim>, dim> +struct +DUNE_DEPRECATED_MSG("SGrid is deprecated in Dune 2.4, use YaspGrid instead.") +GridRestartCheck<Dune::SGrid<dim, dim>, dim> { static const bool allowRestart = false; };