Skip to content

[context] Make Context::trial etc return const references

Some methods of Context, in particular

ctx.cell();
ctx.inside();
ctx.outside();
ctx.trial().functionSpace();
ctx.test().functionSpace();
ctx.trial().basis();
ctx.test().basis();

return mutable references, even though there is no way to actually modify the returned objects. Please consider making these objects return const references.