Skip to content
Snippets Groups Projects

Copy problem parameters into local operator

Merged Dr. Jorrit Fahlke requested to merge problem-params-by-value into master
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading