Skip to content

Commit

Permalink
Modify parameters of the advection field RP gtest to reduce time of t…
Browse files Browse the repository at this point in the history
…est.

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 <pavi@nb-pavi-1.ipp.mpg.de>
  • Loading branch information
EmilyBourne and PaulineVidal committed Mar 21, 2024
1 parent 5e4197e commit 8fc63b1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -289,8 +289,8 @@ TEST(AdvectionFieldRPComputation, TestAdvectionFieldFinder)

// --- Check the difference on advection fields --------------------------------------------------
for_each(grid, [&](IndexRP const irp) {
EXPECT_LE(abs(ddcHelper::get<RDimX>(difference_between_fields_exact_and_xy)(irp)), 1e-6);
EXPECT_LE(abs(ddcHelper::get<RDimY>(difference_between_fields_exact_and_xy)(irp)), 1e-6);
EXPECT_LE(abs(ddcHelper::get<RDimX>(difference_between_fields_exact_and_xy)(irp)), 1e-5);
EXPECT_LE(abs(ddcHelper::get<RDimY>(difference_between_fields_exact_and_xy)(irp)), 1e-5);

EXPECT_LE(abs(ddcHelper::get<RDimX>(difference_between_fields_xy_and_rp)(irp)), 1e-14);
EXPECT_LE(abs(ddcHelper::get<RDimY>(difference_between_fields_xy_and_rp)(irp)), 1e-14);
Expand Down

0 comments on commit 8fc63b1

Please sign in to comment.