Skip to content

Commit

Permalink
possibly fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Nov 21, 2024
1 parent 4789e0e commit 6d1a882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/poisson_gmg/poisson_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ TaskCollection PoissonDriver::MakeTaskCollection(BlockList_t &blocks) {
auto &md_rhs = pmesh->mesh_data.Add("rhs", md, {u::name()});

// Move the rhs variable into the rhs stage for stage based solver
auto copy_rhs = tl.AddTask(none, TF(solvers::utils::CopyData<rhs, u>), md);
auto copy_rhs = tl.AddTask(none, TF(solvers::utils::CopyDataBetweenFields<rhs, u>), md);
copy_rhs = tl.AddTask(copy_rhs, TF(solvers::utils::CopyData<parthenon::TypeList<u>>),
md, md_rhs);

// Possibly set rhs <- A.u_exact for a given u_exact so that the exact solution is
// known when we solve A.u = rhs
if (use_exact_rhs) {
auto copy_exact = tl.AddTask(copy_rhs, TF(solvers::utils::CopyData<exact, u>), md);
auto copy_exact = tl.AddTask(copy_rhs, TF(solvers::utils::CopyDataBetweenFields<exact, u>), md);
copy_exact = tl.AddTask(
copy_rhs, TF(solvers::utils::CopyData<parthenon::TypeList<u>>), md, md_u);
copy_exact, TF(solvers::utils::CopyData<parthenon::TypeList<u>>), md, md_u);
auto comm = AddBoundaryExchangeTasks<BoundaryType::any>(copy_exact, tl, md_u, true);
auto *eqs =
pkg->MutableParam<poisson_package::PoissonEquation<u, D>>("poisson_equation");
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/solver_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ struct Stencil {

namespace utils {
template <class in_t, class out_t, bool only_fine_on_composite = true>
TaskStatus CopyData(const std::shared_ptr<MeshData<Real>> &md) {
TaskStatus CopyDataBetweenFields(const std::shared_ptr<MeshData<Real>> &md) {
using TE = parthenon::TopologicalElement;
TE te = TE::CC;
IndexRange ib = md->GetBoundsI(IndexDomain::entire, te);
Expand Down

0 comments on commit 6d1a882

Please sign in to comment.