Commit 8d4f7123 authored by chinsp's avatar chinsp
Browse files

created a class of tests that fail and added tests

parent 563544b5
Pipeline #158968 failed with stages
in 11 minutes and 22 seconds
......@@ -304,14 +304,13 @@ public:
class SparseGrid2DPD3qptotProblemFail : public SparseGridGeneratorProblem {
public:
explicit SparseGrid2DPD3qptotProblemFail(const Meshes &meshes) :
SparseGridGeneratorProblem(meshes, SparseGridGenerator(meshes, 2, 0, 2, TasGrid::type_iptotal)) {}
SparseGridGeneratorProblem(meshes, SparseGridGenerator(meshes, 2, 0, 3, TasGrid::type_iptotal)) {}
double FunctionEvaluation() override {
RVector sample = this->generator.EvalSample();
double y1 = sample[0];
double y2 = sample[1];
return (3.0 * (1 + y1 + pow(y1,2) + pow(y1,4) + y2 + pow(y1,3) + pow(y2,3)
+ y1 * y2 + y1 * pow(y2,5 + y2 * pow(y1,3))));
return y2 * pow(y1,19 ) + y1 * pow(y2,19);
}
string Name() const override {
......
......@@ -23,7 +23,7 @@ INSTANTIATE_TEST_SUITE_P(
//Though the test below is supposed to fail the test doesn't
//Don't know why it is not failing
TestParams{"SparseGrid2DPD3qptotProblemFail", "FunctionEvaluation",
"DummyPDESolver", 20.0}
"DummyPDESolver", 0.0}
// Todo add more test cases
));
......
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