StochasticEllipticProblem.cpp 608 Bytes
Newer Older
niklas.baumgarten's avatar
niklas.baumgarten committed
1
#include "problems/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
16
  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);
  Exit(problemName + " not found")
17
}