IStochasticProblem.cpp 815 Bytes
Newer Older
1
#include "IStochasticProblem.hpp"
2
3
#include "generators/CirculantEmbedding.hpp"
#include "generators/HybridFluxGenerator.hpp"
4
5


niklas.baumgarten's avatar
niklas.baumgarten committed
6
7
SampleGenerator *IStochasticProblem::createGenerator(GeneratorName genName,
                                                     Meshes &meshes) {
niklas.baumgarten's avatar
niklas.baumgarten committed
8
9
    if (genName == "DummyGenerator")
        return new DummyGenerator(meshes);
10
11
12
13
14
//    if (genName == "UniformRandomNumberGenerator")
//        return new UniformRandomNumberGenerator(meshes);
//    if (genName == "NormalRandomNumberGenerator")
//        return new NormalRandomNumberGenerator(meshes);

niklas.baumgarten's avatar
niklas.baumgarten committed
15
16
17
18
    if (genName == "CirculantEmbedding")
        return new MultilevelCirculantEmbedding(meshes);
    if (genName == "HybridFluxGenerator")
        return new MultilevelHybridFluxGenerator(meshes);
19
20
    Exit("Generator not implemented")
}