StochasticEllipticProblem.cpp 683 Bytes
Newer Older
1
#include "StochasticEllipticProblem.hpp"
2
3
4


IStochasticEllipticProblem *
niklas.baumgarten's avatar
niklas.baumgarten committed
5
CreateStochasticEllipticProblem(const string &problemName, const Meshes &meshes) {
niklas.baumgarten's avatar
niklas.baumgarten committed
6
7
8
9
10
11
12
13
14
15
  if (problemName == "StochasticLaplace1D")
    return new StochasticLaplace1D(meshes);
  if (problemName == "Laplace1D")
    return new Laplace1D(meshes);
  if (problemName == "StochasticLaplace2D")
    return new StochasticLaplace2D(meshes);
  if (problemName == "Laplace2D")
    return new Laplace2D(meshes);
  if (problemName == "StochasticLaplace2DTest")
    return new StochasticLaplace2DTest(meshes);
chinsp's avatar
chinsp committed
16
17
  if (problemName == "SparseGridTestPDE")
    return new SparseGridTestPDE(meshes);
niklas.baumgarten's avatar
niklas.baumgarten committed
18
  Exit(problemName + " not found")
19
}