Commit 621f16cb authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Dennis Gläser
Browse files

[params] Use getParam method for Vtk group

parent d4205b31
......@@ -324,6 +324,10 @@ private:
// parameters in the time loop group
params["TimeLoop.MaxTimeStepSize"] = std::to_string(std::numeric_limits<double>::max());
params["TimeLoop.MaxTimeStepDivisions"] = "10";
// parameters in the vtk group
params["Vtk.AddVelocity"] = "false";
params["Vtk.AddProcessRank"] = "true";
}
};
......
......@@ -329,7 +329,7 @@ private:
//! returns a boolean whether or not the AB matrix has to be passed to the handles
bool requireABMatrix_() const
{
static const bool requireAB = GET_PARAM_FROM_GROUP(TypeTag, bool, Vtk, AddVelocity) || dim < dimWorld;
static const bool requireAB = getParamFromGroup<bool>(GET_PROP_VALUE(TypeTag, ModelParameterGroup), "Vtk.AddVelocity") || dim < dimWorld;
return requireAB;
}
......
......@@ -105,8 +105,6 @@ NEW_PROP_TAG(SolutionDependentHeatConduction); //!< specifies if the parameters
NEW_PROP_TAG(EvaluatePermeabilityAtScvfIP);
// vtk output
NEW_PROP_TAG(VtkAddVelocity); //!< specifies if an element velocity it reconstructed for the output
NEW_PROP_TAG(VtkAddProcessRank); //!< specifies if the process rank should be added the output
NEW_PROP_TAG(VtkOutputModule); //!< specifies the output module to be used
NEW_PROP_TAG(VelocityOutput); //!< specifies the velocity calculation module to be used
......@@ -146,7 +144,6 @@ NEW_PROP_TAG(DofMapper);
//! indicate whether discretization is box or not
NEW_PROP_TAG(ImplicitIsBox);
//! the local fem space used for the AMG backend
NEW_PROP_TAG(ImplicitLocalFemMap);
......
......@@ -219,8 +219,6 @@ SET_BOOL_PROP(ImplicitBase, EnableEnergyBalance, false);
SET_TYPE_PROP(ImplicitBase, EnergyLocalResidual, EnergyLocalResidual<TypeTag> );
//! vtk output
SET_BOOL_PROP(ImplicitBase, VtkAddVelocity, false); //!< Don't reconstruct velocity per default
SET_BOOL_PROP(ImplicitBase, VtkAddProcessRank, true); //!< Add process rank to output per default
SET_TYPE_PROP(ImplicitBase, VtkOutputModule, VtkOutputModule<TypeTag>);
SET_TYPE_PROP(ImplicitBase, VelocityOutput, ImplicitVelocityOutput<TypeTag>);
......
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