From 25e195b88f6743574bf058ca46580e00a0dc29b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6=20Fahlke?= <jorrit@jorrit.de> Date: Wed, 3 Apr 2019 16:26:04 +0200 Subject: [PATCH] Copy problem parameters into local operator Closes: #28 --- src/nonlinearpoissonfem.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nonlinearpoissonfem.hh b/src/nonlinearpoissonfem.hh index f0bcb56..cc203f7 100644 --- a/src/nonlinearpoissonfem.hh +++ b/src/nonlinearpoissonfem.hh @@ -39,7 +39,7 @@ namespace PPS { // set to false public LocalOperatorDefaultFlags { - Param& param_; // parameter class + Param param_; // parameter class // The required quadrature order is determined by the polynomial degree of // the integrand. This is normally automatically determined from the // order of the basis functions. Except that this local operator @@ -58,8 +58,8 @@ namespace PPS { enum { doLambdaBoundary = true }; enum { doAlphaVolume = true }; - NonlinearPoissonFEM (Param& param, int incrementorder=0) - : param_(param), incrementorder_(incrementorder) + NonlinearPoissonFEM (Param param, int incrementorder=0) + : param_(std::move(param)), incrementorder_(incrementorder) {} // getter for parameter object -- GitLab