The TS-GitLab will have to shut down towards the end of the year — please think about migrating your projects to or GitHub.
(This is still a very early message, meant to keep you informed. There will be more urgent ones in the future.)

Commit 6b59520d authored by Lukas Riedel's avatar Lukas Riedel 🎧
Browse files

Merge branch '11-add-subsampling-vtk-writer' into 'master'

Resolve "add subsampling VTK writer"

Closes #11

See merge request !68
parents a6b89056 a5bf7375
......@@ -4,6 +4,8 @@
## Unreleased
### Added
* DORiE now employs a `SubsamplingVTKWriter` for higher output precision.
Subsampling levels are controlled via the new key `output.subsamplingLevel`.
* Automatic deployment of `devel` and stable DORiE Docker Images to Docker Hub
* Automatic update of the DUNE environment Docker Image for `master` builds
* CI pipeline now also compiles a Debug build with the LLVM Clang compiler
......@@ -21,7 +23,12 @@
sequential ones. This significantly improves performance for large problems.
* Change compilation order which reduces RAM usage when compiling in parallel.
* Decentralization of the header system so that in most of the header files are
independent of each other
independent of each other
### Deprecated
* `output.subsamplingLevel` is optional and defaults to 0 if not given
explicitly in the config file. The key will become mandatory in future
### Fixed
* The source code is now compatible to the Clang LLVM compiler.
......@@ -61,6 +61,18 @@ adding an empty line, make text **bold** or ``monospaced``.
<suggestion> false </suggestion>
<parameter name="subsamplingLevel">
<definition> Plot VTK files with virtually refined grids. VTK only
supports bilinear triangulations and displays higher-order solutions
inappropriately. Use level 0 for order 1, and level N+1 for order N.
For level &gt; 0, the printed grid does not resemble the actual grid.
This parameter defaults to 0 if not given in the config file. Notice
that subsampling significantly increases the output file size!
<values> int </values>
<suggestion> 0 </suggestion>
<parameter name="asciiVtk">
<definition> Defines whether VTK files should be written as ASCII (``true``)
or binary (``false``). ASCII is easier to parse in case you want to write
......@@ -9,6 +9,7 @@
#include <dune/common/parametertree.hh>
#include <dune/grid/io/file/vtk/vtksequencewriter.hh>
#include <dune/grid/io/file/vtk/subsamplingvtkwriter.hh>
#include <dune/pdelab/gridfunctionspace/gridfunctionspaceutilities.hh>
......@@ -46,6 +47,7 @@ private:
using GV = typename Traits::GV;
using VTKWriter = Dune::VTKSequenceWriter<GV>;
using SubVTK = Dune::SubsamplingVTKWriter<GV>;
using UDGF = Dune::PDELab::DiscreteGridFunction<GFS,U>;
using FluxDGF = Dune::Dorie::GradientFluxAdapter<GFS,U,Param>;
using ConDGF = Dune::Dorie::ConductivityAdapter<Traits,Param>;
......@@ -72,11 +74,12 @@ public:
OutputWriter (Dune::ParameterTree& _inifile, GV& gv, GFS& gfs, Param& param, U& unew)
: OutputWriterBase<Traits>(),
"output.subsamplingLevel", 0))),
Markdown is supported
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