Commit c5fd45be authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added weight to SampleSolution

parent 0d81b9e1
......@@ -44,11 +44,13 @@ struct SampleSolution {
SampleID id;
public:
double Q;
double Q; // Quantity of interest of sample solution
double C;
double C; // Cost to compute sample solution
Vector U;
double W; // Weight of the sample solution
Vector U; // Finite element coefficient vector of sample solution
SampleSolution(IDiscretization *disc, const std::string &name = "U") :
U(Vector((*disc))) {
......@@ -80,6 +82,7 @@ public:
Q = 0.0;
C = 0.0;
U = 0.0;
W = 1.0;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment