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

Constness

parent 9cc66c56
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
};
MyBlockProblem(Dune::ParameterTree const &parset,
MyConvexProblemType &problem)
const MyConvexProblemType &problem)
: parset(parset), problem(problem) {
bisection = Bisection(
0.0, // acceptError: Stop if the search interval has
......@@ -241,7 +241,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
private:
// problem data
MyConvexProblemType &problem;
MyConvexProblemType const &problem;
// commonly used minimization stuff
Bisection bisection;
......@@ -262,7 +262,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
* \param problem The problem including quadratic part and nonlinear part
*/
IterateObject(Dune::ParameterTree const &parset, Bisection const &bisection,
MyConvexProblemType &problem)
MyConvexProblemType const &problem)
: parset(parset), problem(problem), bisection(bisection) {}
public:
......@@ -331,7 +331,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
Dune::ParameterTree const &parset;
// problem data
MyConvexProblemType &problem;
MyConvexProblemType const &problem;
// commonly used minimization stuff
Bisection bisection;
......
......@@ -393,7 +393,7 @@ int main(int argc, char *argv[]) {
assemble_nonlinearity<VectorType, OperatorType>(
grid->size(grid->maxLevel(), dim), parset, nodalIntegrals,
state, h);
MyConvexProblemType myConvexProblem(stiffnessMatrix,
MyConvexProblemType const myConvexProblem(stiffnessMatrix,
*myGlobalNonlinearity, b1);
MyBlockProblemType myBlockProblem(parset, myConvexProblem);
nonlinearGSStep.setProblem(u1_diff, myBlockProblem);
......@@ -414,7 +414,7 @@ int main(int argc, char *argv[]) {
assemble_nonlinearity<VectorType, OperatorType>(
grid->size(grid->maxLevel(), dim), parset, nodalIntegrals,
s4_new, h);
MyConvexProblemType myConvexProblem(stiffnessMatrix,
MyConvexProblemType const myConvexProblem(stiffnessMatrix,
*myGlobalNonlinearity, b4);
MyBlockProblemType myBlockProblem(parset, myConvexProblem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment