Commit 83247b86 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added default name and made matrix graph pointer

parent 1d697595
......@@ -27,6 +27,8 @@ struct SampleID {
};
struct SampleSolution {
std::string name = "U";
SampleID id;
double Q;
......@@ -35,14 +37,14 @@ struct SampleSolution {
Vector U;
SampleSolution(MatrixGraphs &solMGraphs, int mGlevel) :
U(Vector(solMGraphs[mGlevel])) {
SampleSolution(MatrixGraphs *solMGraphs, int mGlevel) :
U(Vector((*solMGraphs)[mGlevel])) {
Init();
}
// Todo might crash if sampleID corresponds to coarse sample
SampleSolution(MatrixGraphs &solMGraphs, SampleID id) :
id(id), U(Vector(solMGraphs[id.level.mGfine])) {
SampleSolution(MatrixGraphs *solMGraphs, SampleID id) :
id(id), U(Vector((*solMGraphs)[id.level.mGfine])) {
Init();
}
......
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