Commit 9ea3a18c authored by Timo Koch's avatar Timo Koch
Browse files

[vtk] Add hook for model to add fields

parent 70e068a6
......@@ -684,6 +684,13 @@ public:
MultiWriter &writer)
{}
/*!
* \brief Adds additional VTK output data to the VTKWriter. Function is called by the output module on every write.
*/
template<class VtkOutputModule>
void addVtkOutputFields(VtkOutputModule& outputModule) const
{}
/*!
* \brief Reference to the grid view of the spatial domain.
*/
......
......@@ -153,6 +153,7 @@ public:
//! (1) Register addtional (non-standardized) data fields with the vtk writer
//! Using the add scalar field or vector field methods
//////////////////////////////////////////////////////////////
problem_.model().addVtkOutputFields(*this);
problem_.addVtkOutputFields(*this);
//! Abort if no data was registered
......
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