diff --git a/dumux-precice/couplingadapter.hh b/dumux-precice/couplingadapter.hh index 298ce54..31ad6d5 100644 --- a/dumux-precice/couplingadapter.hh +++ b/dumux-precice/couplingadapter.hh @@ -147,7 +147,7 @@ public: * Example 3D:\n * [x_1, y_1, z_1, x_2, y_2, z_2,...x_numPoints, y_numPoints, z_numPoints] */ - void setMesh(const std::string &meshName, std::vector &positions); + void setMesh(const std::string &meshName, const std::vector &positions); /*! * @brief Initializes the coupling * diff --git a/examples/dummysolver/main_dummysolver.cc b/examples/dummysolver/main_dummysolver.cc index 431d767..f2c4aef 100644 --- a/examples/dummysolver/main_dummysolver.cc +++ b/examples/dummysolver/main_dummysolver.cc @@ -54,7 +54,7 @@ try { const int dimensions = couplingParticipant.getMeshDimensions(meshName); assert(dimensions == 3); - const std::string scalarDataWriteName = + const std::string scalarDataWriteName = (solverName == "SolverOne") ? "scalarDataOne" : "scalarDataTwo"; const std::string scalarDataReadName = (solverName == "SolverOne") ? "scalarDataTwo" : "scalarDataOne";