Skip to content
Snippets Groups Projects
Commit f8c8ae82 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Constness

parent 8805d542
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
template <class VertexBasis, class CellBasis, class VectorType, template <class VertexBasis, class CellBasis, class VectorType,
class SingletonVectorType, class GridView> class SingletonVectorType, class GridView>
void writeVtk(VertexBasis vertexBasis, VectorType displacement, void writeVtk(VertexBasis const &vertexBasis, VectorType const &displacement,
SingletonVectorType state, CellBasis cellBasis, SingletonVectorType const &state, CellBasis const &cellBasis,
SingletonVectorType stress, GridView gridView, SingletonVectorType const &stress, GridView const &gridView,
std::string filename) { std::string const &filename) {
Dune::VTKWriter<GridView> writer(gridView); Dune::VTKWriter<GridView> writer(gridView);
auto const displacement_ptr = auto const displacement_ptr =
......
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
template <class VertexBasis, class CellBasis, class VectorType, template <class VertexBasis, class CellBasis, class VectorType,
class SingletonVectorType, class GridView> class SingletonVectorType, class GridView>
void writeVtk(VertexBasis vertexBasis, VectorType displacement, void writeVtk(VertexBasis const &vertexBasis, VectorType const &displacement,
SingletonVectorType state, CellBasis cellBasis, SingletonVectorType const &state, CellBasis const &cellBasis,
SingletonVectorType stress, GridView gridView, SingletonVectorType const &stress, GridView const &gridView,
std::string filename); std::string const &filename);
#endif #endif
...@@ -22,7 +22,10 @@ typedef P1NodalBasis<GridView, double> P1Basis; ...@@ -22,7 +22,10 @@ typedef P1NodalBasis<GridView, double> P1Basis;
typedef P0Basis<GridView, double> MyP0Basis; typedef P0Basis<GridView, double> MyP0Basis;
template void writeVtk<P1Basis, MyP0Basis, VectorType, SingletonVectorType, template void writeVtk<P1Basis, MyP0Basis, VectorType, SingletonVectorType,
GridView>(P1Basis vertexBasis, VectorType displacement, GridView>(P1Basis const &vertexBasis,
SingletonVectorType state, MyP0Basis cellBasis, VectorType const &displacement,
SingletonVectorType stress, GridView gridView, SingletonVectorType const &state,
std::string filename); MyP0Basis const &cellBasis,
SingletonVectorType const &stress,
GridView const &gridView,
std::string const &filename);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment