/** * @file com_smooth.cpp * @author Julian Iseringhausen * @date Mon Apr 18 12:52:29 2011 * * @brief Run the smoother. * */ #ifdef HAVE_CONFIG_H #include #endif #include "base/command.hpp" #include "grid/multigrid.hpp" #include "smoother/smoother.hpp" #include "mg.hpp" using namespace VMG; class VMGCommandSmooth : public Command { public: Request Run(Command::argument_vector arguments) { MPE_EVENT_BEGIN() const int& steps = MG::GetFactory().Get(arguments[0])->Cast< ObjectStorage >()->Val(); MG::GetSmoother()->Run(*MG::GetSol(), *MG::GetRhs(), steps); MPE_EVENT_END() return Continue; } static const char* Name() {return "Smooth";} static int Arguments() {return 1;} }; CREATE_INITIALIZER(VMGCommandSmooth)