source: src/commands/com_interpolate_fmg.cpp@ 66f24d

Last change on this file since 66f24d was 48b662, checked in by Olaf Lenz <olenz@…>, 14 years ago

Moved files in scafacos_fcs one level up.

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

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