Commit fb38b753 authored by chinsp's avatar chinsp
Browse files

experimented with different types of sparse grids

parent 8d4f7123
Pipeline #158974 passed with stages
in 11 minutes and 27 seconds
......@@ -287,13 +287,13 @@ public:
class SparseGrid2DPD2qptotProblemFail : public SparseGridGeneratorProblem {
public:
explicit SparseGrid2DPD2qptotProblemFail(const Meshes &meshes) :
SparseGridGeneratorProblem(meshes, SparseGridGenerator(meshes, 2, 0, 1, TasGrid::type_qptotal)) {}
SparseGridGeneratorProblem(meshes, SparseGridGenerator(meshes, 2, 0, 2, TasGrid::type_qptotal)) {}
double FunctionEvaluation() override {
RVector sample = this->generator.EvalSample();
double y1 = sample[0];
double y2 = sample[1];
return 3.0 * (1 + y1 + pow(y1,2) + y2 + pow(y1,2) + y1 * y2);
return 3.0 * (1 + y1 + pow(y1,3) + y2 + pow(y1,3) + y1 * y2);
}
string Name() const override {
......
......@@ -19,7 +19,7 @@ INSTANTIATE_TEST_SUITE_P(
INSTANTIATE_TEST_SUITE_P(
TestStochasticCollocation, TestStochasticCollocationFailingTests, Values(
TestParams{"SparseGrid2DPD2qptotProblemFail", "FunctionEvaluation",
"DummyPDESolver", 20.0},
"DummyPDESolver", 12.0},
//Though the test below is supposed to fail the test doesn't
//Don't know why it is not failing
TestParams{"SparseGrid2DPD3qptotProblemFail", "FunctionEvaluation",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment