Skip to content
Snippets Groups Projects
Commit 7e8ee9c1 authored by Laura Stengel's avatar Laura Stengel
Browse files

fixed PrestressTest

parent ae99d908
No related branches found
No related tags found
1 merge request!247Resolve "Fix Prestress"
......@@ -30,6 +30,11 @@ protected:
testConfig["PrestressSteps"] = "5";
testConfig["WithPrestress"] = "true";
testConfig["MechEpsilon"] = "1e-12";
testConfig["NewtonEpsilon"] = "1e-11";
testConfig["NewtonReduction"] = "1e-12";
testConfig["WithPrestress"] = "true";
//testConfig["Mesh"] = GetParam().meshName;
testConfig["Mechlevel"] = std::to_string(GetParam().level);
......@@ -61,7 +66,8 @@ protected:
TEST_P(PrestressTest, TestInitialValue) {
Vector &solution = cmMain->Run();
mout << solution << endl;
mout << "solution " << solution << endl;
mout << "num " << cmMain->EvaluateQuantity(solution, "L2") << endl << endl;
for (row r = solution.rows(); r != solution.rows_end(); ++r) {
for (int i = 0; i < r.n(); ++i) {
EXPECT_NEAR(solution(r, i), 0.0, NEWTON_TOLERANCE);
......@@ -109,6 +115,6 @@ INSTANTIATE_TEST_SUITE_P(OnEllipsoid, PrestressTest, Values(
*/
int main(int argc, char **argv) {
MppTest mppTest = MppTestBuilder(argc, argv).WithPPM().WithoutDefaultConfig().WithScreenLogging();
MppTest mppTest = MppTestBuilder(argc, argv).WithPPM().WithoutDefaultConfig().WithScreenLogging().WithFileLogging();
return mppTest.RUN_ALL_MPP_TESTS();
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment