/** * @file smoother.cpp * @author Julian Iseringhausen * @date Mon Apr 18 13:08:57 2011 * * @brief VMG::Smoother * */ #ifdef HAVE_CONFIG_H #include #endif #include "base/discretization.hpp" #include "comm/comm.hpp" #include "smoother/smoother.hpp" #include "mg.hpp" using namespace VMG; void Smoother::Run(Multigrid& sol, Multigrid& rhs, int steps) { for (int i=0; iCommToGhosts(sol()); if (sol().Global().BoundaryType() == LocallyRefined) MG::GetDiscretization()->SetInnerBoundary(sol(), rhs(), sol(sol.Level()-1)); this->Compute(sol(), rhs()); } }