ikarus-project / ikarus

Ikarus is a C++-based library that uses DUNE modules to solve partial differential equations with the finite element method and more.
https://ikarus-project.github.io/
Other
6 stars 3 forks source link

Implement Ikarus::VtkWriter that takes arguements for precision for easy collecting of results + Python Bindings #287

Closed tarun-mitruka closed 1 month ago

tarun-mitruka commented 5 months ago

Currently, the class ResultFunction inherits from Dune::VTKFunction<typename FE::GridView> where the method precision() sets the default to float32. This method should also be included in ResultFunction such that the precision can be decided by the user and perhaps a better default here would be float64. So something like this can be added and perhaps can be generalized to be compatible with dune-vtk:

template <typename PrecisionType = Dune::VTK::Precision::float64>
[[nodiscard]] Dune::VTK::Precision precision() const override { return PrecisionType; }