Skip to content

Commit

Permalink
✔️ Pass test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
micheltakken committed Jul 16, 2024
1 parent 4ca5daf commit 4e50c38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/Hybrid/Network4a.JSON
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
"charPhysVelocity": 1e-1,
"alpha": 0.003,
"resolution": 20,
"epsilon": 1e-1,
"epsilon": 1e-2,
"tau": 0.55,
"moduleId": 0,
"Openings": [
Expand Down
22 changes: 11 additions & 11 deletions tests/hybrid/Hybrid.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,19 +288,19 @@ TEST(Hybrid, testCase4a) {
ASSERT_NEAR(network.getNodes().at(0)->getPressure(), 0, 1e-2);
ASSERT_NEAR(network.getNodes().at(1)->getPressure(), 1000, 1e-2);
ASSERT_NEAR(network.getNodes().at(2)->getPressure(), 781.127, 1e-2);
ASSERT_NEAR(network.getNodes().at(3)->getPressure(), 616.808, 1e-2);
ASSERT_NEAR(network.getNodes().at(3)->getPressure(), 616.803, 1e-2);
ASSERT_NEAR(network.getNodes().at(4)->getPressure(), 604.131, 1e-2);
ASSERT_NEAR(network.getNodes().at(5)->getPressure(), 535.195, 1e-2);
ASSERT_NEAR(network.getNodes().at(6)->getPressure(), 447.970, 1e-2);
ASSERT_NEAR(network.getNodes().at(7)->getPressure(), 371.019, 1e-2);
ASSERT_NEAR(network.getNodes().at(8)->getPressure(), 698.420, 1e-2);
ASSERT_NEAR(network.getNodes().at(5)->getPressure(), 535.190, 1e-2);
ASSERT_NEAR(network.getNodes().at(6)->getPressure(), 447.980, 1e-2);
ASSERT_NEAR(network.getNodes().at(7)->getPressure(), 371.030, 1e-2);
ASSERT_NEAR(network.getNodes().at(8)->getPressure(), 698.415, 1e-2);
ASSERT_NEAR(network.getNodes().at(9)->getPressure(), 695.906, 1e-2);
ASSERT_NEAR(network.getNodes().at(10)->getPressure(), 552.144, 1e-2);
ASSERT_NEAR(network.getNodes().at(11)->getPressure(), 540.373, 1e-2);
ASSERT_NEAR(network.getNodes().at(12)->getPressure(), 522.325, 1e-2);
ASSERT_NEAR(network.getNodes().at(13)->getPressure(), 454.945, 1e-2);
ASSERT_NEAR(network.getNodes().at(14)->getPressure(), 355.566, 1e-2);
ASSERT_NEAR(network.getNodes().at(15)->getPressure(), 217.853, 1e-2);
ASSERT_NEAR(network.getNodes().at(10)->getPressure(), 552.139, 1e-2);
ASSERT_NEAR(network.getNodes().at(11)->getPressure(), 540.383, 1e-2);
ASSERT_NEAR(network.getNodes().at(12)->getPressure(), 522.320, 1e-2);
ASSERT_NEAR(network.getNodes().at(13)->getPressure(), 454.955, 1e-2);
ASSERT_NEAR(network.getNodes().at(14)->getPressure(), 355.576, 1e-2);
ASSERT_NEAR(network.getNodes().at(15)->getPressure(), 217.852, 1e-2);
ASSERT_NEAR(network.getNodes().at(16)->getPressure(), 0, 1e-2);

ASSERT_NEAR(network.getChannels().at(1)->getFlowRate(), 2.43192e-9, 1e-14);
Expand Down

0 comments on commit 4e50c38

Please sign in to comment.