Commit 121b8682 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

change do FLOAT64 as default data-type int Vtk::Function

parent 7d6112c5
...@@ -82,7 +82,7 @@ namespace Dune ...@@ -82,7 +82,7 @@ namespace Dune
{ {
setComponents(std::move(components)); setComponents(std::move(components));
setRangeType(getArg<Vtk::RangeTypes>(args..., Vtk::RangeTypes::UNSPECIFIED), components_.size()); setRangeType(getArg<Vtk::RangeTypes>(args..., Vtk::RangeTypes::UNSPECIFIED), components_.size());
setDataType(getArg<Vtk::DataTypes>(args..., Vtk::DataTypes::FLOAT32)); setDataType(getArg<Vtk::DataTypes>(args..., Vtk::DataTypes::FLOAT64));
} }
/// (2) Construct from a LocalFunction directly /// (2) Construct from a LocalFunction directly
...@@ -103,7 +103,7 @@ namespace Dune ...@@ -103,7 +103,7 @@ namespace Dune
: Function(std::forward<LF>(localFct), std::move(name), : Function(std::forward<LF>(localFct), std::move(name),
allComponents(getArg<int,unsigned int,long,unsigned long>(args..., sizeOf<R>())), allComponents(getArg<int,unsigned int,long,unsigned long>(args..., sizeOf<R>())),
getArg<Vtk::RangeTypes>(args..., Vtk::RangeTypes::UNSPECIFIED), getArg<Vtk::RangeTypes>(args..., Vtk::RangeTypes::UNSPECIFIED),
getArg<Vtk::DataTypes>(args..., Vtk::DataTypes::FLOAT32)) getArg<Vtk::DataTypes>(args..., Vtk::DataTypes::FLOAT64))
{} {}
/// (3) Construct from a Vtk::Function /// (3) Construct from a Vtk::Function
...@@ -148,7 +148,7 @@ namespace Dune ...@@ -148,7 +148,7 @@ namespace Dune
{ {
setComponents(fct->ncomps()); setComponents(fct->ncomps());
#if DUNE_VERSION_LT(DUNE_GRID,2,7) #if DUNE_VERSION_LT(DUNE_GRID,2,7)
setDataType(Vtk::DataTypes::FLOAT32); setDataType(Vtk::DataTypes::FLOAT64);
#else #else
setDataType(dataTypeOf(fct->precision())); setDataType(dataTypeOf(fct->precision()));
#endif #endif
...@@ -236,7 +236,7 @@ namespace Dune ...@@ -236,7 +236,7 @@ namespace Dune
Vtk::LocalFunction<GridView> localFct_; Vtk::LocalFunction<GridView> localFct_;
std::string name_; std::string name_;
std::vector<int> components_; std::vector<int> components_;
Vtk::DataTypes dataType_ = Vtk::DataTypes::FLOAT32; Vtk::DataTypes dataType_ = Vtk::DataTypes::FLOAT64;
Vtk::RangeTypes rangeType_ = Vtk::RangeTypes::UNSPECIFIED; Vtk::RangeTypes rangeType_ = Vtk::RangeTypes::UNSPECIFIED;
}; };
......
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