source: src/commands/com_smooth.cpp@ dfed1c

Last change on this file since dfed1c was dfed1c, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Major vmg update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1136 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 807 bytes
Line 
1/**
2 * @file com_smooth.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:52:29 2011
5 *
6 * @brief Run the smoother.
7 *
8 */
9
10#ifdef HAVE_CONFIG_H
11#include <config.h>
12#endif
13
14#include "base/command.hpp"
15#include "grid/multigrid.hpp"
16#include "smoother/smoother.hpp"
17#include "mg.hpp"
18
19using namespace VMG;
20
21class VMGCommandSmooth : public Command
22{
23public:
24 Request Run(Command::argument_vector arguments)
25 {
26 MPE_EVENT_BEGIN()
27
28 const int& steps = MG::GetFactory().Get(arguments[0])->Cast< ObjectStorage<int> >()->Val();
29
30 MG::GetSmoother()->Run(*MG::GetSol(), *MG::GetRhs(), steps);
31
32 MPE_EVENT_END()
33
34 return Continue;
35 }
36
37 static const char* Name() {return "Smooth";}
38 static int Arguments() {return 1;}
39};
40
41CREATE_INITIALIZER(VMGCommandSmooth)
Note: See TracBrowser for help on using the repository browser.