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 @@
template <class VertexBasis, class CellBasis, class VectorType,
class SingletonVectorType, class GridView>
void writeVtk(VertexBasis vertexBasis, VectorType displacement,
SingletonVectorType state, CellBasis cellBasis,
SingletonVectorType stress, GridView gridView,
std::string filename) {
void writeVtk(VertexBasis const &vertexBasis, VectorType const &displacement,
SingletonVectorType const &state, CellBasis const &cellBasis,
SingletonVectorType const &stress, GridView const &gridView,
std::string const &filename) {
Dune::VTKWriter<GridView> writer(gridView);
auto const displacement_ptr =
......
......@@ -8,9 +8,9 @@
template <class VertexBasis, class CellBasis, class VectorType,
class SingletonVectorType, class GridView>
void writeVtk(VertexBasis vertexBasis, VectorType displacement,
SingletonVectorType state, CellBasis cellBasis,
SingletonVectorType stress, GridView gridView,
std::string filename);
void writeVtk(VertexBasis const &vertexBasis, VectorType const &displacement,
SingletonVectorType const &state, CellBasis const &cellBasis,
SingletonVectorType const &stress, GridView const &gridView,
std::string const &filename);
#endif
......@@ -22,7 +22,10 @@ typedef P1NodalBasis<GridView, double> P1Basis;
typedef P0Basis<GridView, double> MyP0Basis;
template void writeVtk<P1Basis, MyP0Basis, VectorType, SingletonVectorType,
GridView>(P1Basis vertexBasis, VectorType displacement,
SingletonVectorType state, MyP0Basis cellBasis,
SingletonVectorType stress, GridView gridView,
std::string filename);
GridView>(P1Basis const &vertexBasis,
VectorType const &displacement,
SingletonVectorType const &state,
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