Skip to content
Snippets Groups Projects
Commit c4ade004 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

Move back to storing coefficients in a std::vector instead of a std::array.

We need the extra flexibility for higher-order functions.
Run-time loss is around 1% -- that's okay.

[[Imported from SVN: r7836]]
parent bf9d46ec
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,13 @@ class AverageDistanceAssembler
public:
AverageDistanceAssembler(const Dune::array<TargetSpace,N>& coefficients,
const Dune::array<double,N>& weights)
const Dune::array<double,N>& weights) DUNE_DEPRECATED
: coefficients_(coefficients.begin(), coefficients.end()),
weights_(weights.begin(), weights.end())
{}
AverageDistanceAssembler(const std::vector<TargetSpace>& coefficients,
const std::vector<double>& weights)
: coefficients_(coefficients),
weights_(weights)
{}
......@@ -75,9 +81,9 @@ public:
}
const Dune::array<TargetSpace,N> coefficients_;
const std::vector<TargetSpace> coefficients_;
const Dune::array<double,N> weights_;
const std::vector<double> weights_;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment