StochasticTransportProblem.cpp 1.1 KB
Newer Older
1
2
3
4
5
6
7
#include "StochasticTransportProblem.hpp"


IStochasticTransportProblem *
CreateStochasticTransportProblem(std::string problemName, Meshes &meshes) {
    if (problemName == "StochasticPollution1D")
        return new StochasticPollution1D(meshes);
niklas.baumgarten's avatar
niklas.baumgarten committed
8
9
10
    if (problemName == "Pollution1D")
        return new Pollution1D(meshes);

11
12
    if (problemName == "StochasticPollutionCosHat1D")
        return new StochasticPollutionCosHat1D(meshes);
13
14
15
//    if (problemName == "PollutionCosHat1D")
//        return new PollutionCosHat1D(meshes);

16
17
    if (problemName == "StochasticPollution2D")
        return new StochasticPollution2D(meshes);
niklas.baumgarten's avatar
bug fix    
niklas.baumgarten committed
18
    if (problemName == "Pollution2D")
19
20
        return new Pollution2D(meshes);

21
22
    if (problemName == "StochasticPollutionCosHat2D")
        return new StochasticPollutionCosHat2D(meshes);
23
24
    if (problemName == "PollutionCosHat2D")
        return new PollutionCosHat2D(meshes);
25
26
27

    if (problemName == "StochasticGaussHat2D")
        return new StochasticGaussHat2D(meshes);
28
29
    if (problemName == "GaussHat2D")
        return new GaussHat2D(meshes);
30

niklas.baumgarten's avatar
niklas.baumgarten committed
31
    Exit(problemName + " not found")
32
}