| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file com_restrict.cpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:48:45 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Runs LevelOperator::Restrict.
|
|---|
| 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 "level/level_operator.hpp"
|
|---|
| 17 | #include "mg.hpp"
|
|---|
| 18 |
|
|---|
| 19 | using namespace VMG;
|
|---|
| 20 |
|
|---|
| 21 | class VMGCommandRestrict : public Command
|
|---|
| 22 | {
|
|---|
| 23 | public:
|
|---|
| 24 | Request Run(Command::argument_vector arguments)
|
|---|
| 25 | {
|
|---|
| 26 | MPE_EVENT_BEGIN()
|
|---|
| 27 |
|
|---|
| 28 | MG::GetLevelOperator()->Restrict(*MG::GetSol(), *MG::GetRhs());
|
|---|
| 29 |
|
|---|
| 30 | MPE_EVENT_END()
|
|---|
| 31 |
|
|---|
| 32 | return Continue;
|
|---|
| 33 | }
|
|---|
| 34 |
|
|---|
| 35 | static const char* Name() {return "Restrict";}
|
|---|
| 36 | static int Arguments() {return 0;}
|
|---|
| 37 | };
|
|---|
| 38 |
|
|---|
| 39 | CREATE_INITIALIZER(VMGCommandRestrict)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.