Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
972c508e
Commit
972c508e
authored
Mar 11, 2020
by
Timo Koch
Browse files
[cleanup] Remove deprecated VtkOutputFields property
parent
c0f1c9eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
dumux/common/properties.hh
View file @
972c508e
...
...
@@ -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
>
...
...
dumux/common/properties/model.hh
View file @
972c508e
...
...
@@ -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
;
};
...
...
test/porousmediumflow/2p2c/implicit/injection/main.cc
View file @
972c508e
...
...
@@ -121,11 +121,11 @@ int main(int argc, char** argv) try
gridVariables
->
init
(
x
);
// intialize the vtk output module
using
VtkOutput
Fields
=
GetPropType
<
TypeTag
,
Properties
::
VtkOutput
Fields
>
;
using
IO
Fields
=
GetPropType
<
TypeTag
,
Properties
::
IO
Fields
>
;
VtkOutputModule
<
GridVariables
,
SolutionVector
>
vtkWriter
(
*
gridVariables
,
x
,
problem
->
name
());
using
VelocityOutput
=
GetPropType
<
TypeTag
,
Properties
::
VelocityOutput
>
;
vtkWriter
.
addVelocityOutput
(
std
::
make_shared
<
VelocityOutput
>
(
*
gridVariables
));
VtkOutput
Fields
::
initOutputModule
(
vtkWriter
);
// Add model specific output fields
IO
Fields
::
initOutputModule
(
vtkWriter
);
// Add model specific output fields
vtkWriter
.
write
(
restartTime
);
// instantiate time loop
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment