StochasticProblem.cpp 537 Bytes
Newer Older
1
2
3
4
5
#include "StochasticProblem.hpp"
#include "stochastics/CirculantEmbedding.hpp"
#include "stochastics/HybridFluxGenerator.hpp"


niklas.baumgarten's avatar
niklas.baumgarten committed
6
7
SampleGenerator *IStochasticProblem::createGenerator(GeneratorName genName,
                                                     Meshes &meshes) {
niklas.baumgarten's avatar
niklas.baumgarten committed
8
    // todo Enumeration
niklas.baumgarten's avatar
niklas.baumgarten committed
9
10
11
12
    if (genName == "CirculantEmbedding")
        return new MultilevelCirculantEmbedding(meshes);
    if (genName == "HybridFluxGenerator")
        return new MultilevelHybridFluxGenerator(meshes);
13
14
    Exit("Generator not implemented")
}