From 8fc63b15eccd56350eabf0eee21e83c99249d61c Mon Sep 17 00:00:00 2001 From: Emily Bourne Date: Thu, 21 Mar 2024 10:49:57 +0000 Subject: [PATCH] Modify parameters of the advection field RP gtest to reduce time of test. Modify parameters of the advection field RP gtest to reduce time of test. See merge request gysela-developpers/gyselalibxx!409 -------------------------------------------- Co-authored-by: Pauline Vidal --- .../advection_field_rp/advection_field_gtest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/geometryRTheta/advection_field_rp/advection_field_gtest.cpp b/tests/geometryRTheta/advection_field_rp/advection_field_gtest.cpp index c798cb277..09a9ad79e 100644 --- a/tests/geometryRTheta/advection_field_rp/advection_field_gtest.cpp +++ b/tests/geometryRTheta/advection_field_rp/advection_field_gtest.cpp @@ -67,10 +67,10 @@ TEST(AdvectionFieldRPComputation, TestAdvectionFieldFinder) start_simulation = std::chrono::system_clock::now(); // Build the grid for the space. ------------------------------------------------------------------ - int const Nr(32); - int const Nt(64); - double const dt(0.05); - double const final_T(1.6); + int const Nr(20); + int const Nt(40); + double const dt(0.1); + double const final_T(0.8); double const rmin(0); double const rmax(1); @@ -289,8 +289,8 @@ TEST(AdvectionFieldRPComputation, TestAdvectionFieldFinder) // --- Check the difference on advection fields -------------------------------------------------- for_each(grid, [&](IndexRP const irp) { - EXPECT_LE(abs(ddcHelper::get(difference_between_fields_exact_and_xy)(irp)), 1e-6); - EXPECT_LE(abs(ddcHelper::get(difference_between_fields_exact_and_xy)(irp)), 1e-6); + EXPECT_LE(abs(ddcHelper::get(difference_between_fields_exact_and_xy)(irp)), 1e-5); + EXPECT_LE(abs(ddcHelper::get(difference_between_fields_exact_and_xy)(irp)), 1e-5); EXPECT_LE(abs(ddcHelper::get(difference_between_fields_xy_and_rp)(irp)), 1e-14); EXPECT_LE(abs(ddcHelper::get(difference_between_fields_xy_and_rp)(irp)), 1e-14);