Commit 972c508e authored by Timo Koch's avatar Timo Koch
Browse files

[cleanup] Remove deprecated VtkOutputFields property

parent c0f1c9eb
......@@ -72,9 +72,6 @@ template<class TypeTag, class MyTypeTag>
struct PointSource { using type = UndefinedProperty; }; //!< Property defining the type of point source used
template<class TypeTag, class MyTypeTag>
struct PointSourceHelper { using type = UndefinedProperty; }; //!< Property defining the class that computes which sub control volume point sources belong to
// TODO: Remove deprecated property VtkOutputFields
template<class TypeTag, class MyTypeTag>
struct VtkOutputFields { using type = UndefinedProperty; }; //!< A class helping models to define default vtk output parameters
template<class TypeTag, class MyTypeTag>
struct IOFields { using type = UndefinedProperty; }; //!< A class helping models to define input and output fields
template<class TypeTag, class MyTypeTag>
......
......@@ -60,12 +60,6 @@ struct ModelDefaultParameters<TypeTag, TTag::ModelProperties>
static void defaultParams(Dune::ParameterTree& tree, const std::string& group = "") { }
};
//! \todo this property is deprecated use IOFields instead!
template<class TypeTag>
struct VtkOutputFields<TypeTag, TTag::ModelProperties> {
using type [[deprecated("This property is deprecated use property IOFields instead")]] = GetPropType<TypeTag, Properties::IOFields>;
};
//! Set the default to an implementation throwing a NotImplemented error
template<class TypeTag>
struct IOFields<TypeTag, TTag::ModelProperties> { using type = DefaultIOFields; };
......
......@@ -121,11 +121,11 @@ int main(int argc, char** argv) try
gridVariables->init(x);
// intialize the vtk output module
using VtkOutputFields = GetPropType<TypeTag, Properties::VtkOutputFields>;
using IOFields = GetPropType<TypeTag, Properties::IOFields>;
VtkOutputModule<GridVariables, SolutionVector> vtkWriter(*gridVariables, x, problem->name());
using VelocityOutput = GetPropType<TypeTag, Properties::VelocityOutput>;
vtkWriter.addVelocityOutput(std::make_shared<VelocityOutput>(*gridVariables));
VtkOutputFields::initOutputModule(vtkWriter); // Add model specific output fields
IOFields::initOutputModule(vtkWriter); // Add model specific output fields
vtkWriter.write(restartTime);
// instantiate time loop
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment