Skip to content

Commit

Permalink
disable bad test under single-precision
Browse files Browse the repository at this point in the history
  • Loading branch information
mkstoyanov committed Dec 13, 2024
1 parent 1b473fc commit 675f6af
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/asgard_time_advance_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,18 +130,22 @@ TEST_CASE("adaptive time advance")

SECTION("diffusion 2 implicit")
{
auto const tol_factor = get_tolerance<default_precision>(1000);
// the condition number for the difusion PDE is large, use double-precision only
if (std::is_same_v<default_precision, double>)
{
auto const tol_factor = get_tolerance<default_precision>(1000);

auto const gold_base =
time_advance_base_dir / "diffusion2_ad_implicit_sg_l3_d4_t";
auto const gold_base =
time_advance_base_dir / "diffusion2_ad_implicit_sg_l3_d4_t";

auto opts = make_opts("-p diffusion_2 -d 3 -l 3 -n 5 -s impl -a 0.05 -sv direct");
auto opts = make_opts("-p diffusion_2 -d 3 -l 3 -n 5 -s impl -a 0.05 -sv direct");

// temporarily disable test for MPI due to table elements < num ranks
if (get_num_ranks() == 1)
{
time_advance_test(opts, gold_base, tol_factor);
// temporarily disable test for MPI due to table elements < num ranks
if (get_num_ranks() == 1)
time_advance_test(opts, gold_base, tol_factor);
}
else
REQUIRE(true);
}
SECTION("diffusion 2 explicit")
{
Expand Down

0 comments on commit 675f6af

Please sign in to comment.