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

added commSplit to SampleGenerator

parent 898f53ed
......@@ -24,16 +24,18 @@ protected:
int verbose = 0;
int commSplit;
virtual void drawSample(const SampleID &id) = 0;
virtual void plotSample(const SampleID &id) {};
public:
Meshes &meshes;
Meshes &meshes; // todo make const ref or remove completely
explicit SampleGenerator(Meshes &meshes) : meshes(meshes) {
explicit SampleGenerator(Meshes &meshes)
: meshes(meshes), commSplit(meshes.CommSplit()) {
// Todo add prefix
config.get("GeneratorPlotting", plotting);
config.get("GeneratorVerbose", verbose);
}
......@@ -113,7 +115,6 @@ public:
DrawSample(id);
return EvalSample(t, c);
}
};
class ScalarDummy : public SampleGenerator<Scalar> {
......
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