Skip to content

Commit

Permalink
fixes tols
Browse files Browse the repository at this point in the history
  • Loading branch information
mkstoyanov committed Dec 25, 2024
1 parent 694d628 commit 6bf844f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/asgard_solver_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ P test_poisson(std::function<P(P)> du_ref, std::function<P(P)> rhs, P xleft, P x

TEMPLATE_TEST_CASE("poisson solver projected", "[solver]", test_precs)
{
TestType tol = (std::is_same_v<TestType, double>) ? 1.E-14 : 1.E-6;
TestType tol = (std::is_same_v<TestType, double>) ? 1.E-14 : 1.E-5;

SECTION("constant gradient, low degree")
{
Expand Down
8 changes: 8 additions & 0 deletions src/asgard_time_advance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,11 @@ imex_advance(discretization_manager<P> &disc,
}
};

#ifdef ASGARD_USE_CUDA
disc.do_poisson_update(f.clone_onto_host().to_std());
#else
disc.do_poisson_update(f.to_std());
#endif
if (pde.do_poisson_solve())
{
do_poisson_update(f);
Expand Down Expand Up @@ -438,7 +442,11 @@ imex_advance(discretization_manager<P> &disc,
tools::timer.start("explicit_2");
fm::copy(f_orig_dev, f); // f here is now f_0

#ifdef ASGARD_USE_CUDA
disc.do_poisson_update(f_1.clone_to_host().to_std());
#else
disc.do_poisson_update(f_1.to_std());
#endif
if (pde.do_poisson_solve())
{
do_poisson_update(f_1);
Expand Down

0 comments on commit 6bf844f

Please sign in to comment.