| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file com_clear_grid.cpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:32:44 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Overwrites all grid values with zero.
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifdef HAVE_CONFIG_H
|
|---|
| 11 | #include <config.h>
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | #include "base/command.hpp"
|
|---|
| 15 | #include "base/factory.hpp"
|
|---|
| 16 | #include "comm/comm.hpp"
|
|---|
| 17 | #include "grid/multigrid.hpp"
|
|---|
| 18 | #include "mg.hpp"
|
|---|
| 19 |
|
|---|
| 20 | using namespace VMG;
|
|---|
| 21 |
|
|---|
| 22 | class VMGCommandClearGrid : public Command
|
|---|
| 23 | {
|
|---|
| 24 | public:
|
|---|
| 25 | Request Run(Command::argument_vector arguments)
|
|---|
| 26 | {
|
|---|
| 27 | MPE_EVENT_BEGIN()
|
|---|
| 28 |
|
|---|
| 29 | MG::GetFactory().Get(arguments[0])->Cast<Multigrid>()->ClearAll();
|
|---|
| 30 |
|
|---|
| 31 | MPE_EVENT_END()
|
|---|
| 32 |
|
|---|
| 33 | return Continue;
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | static const char* Name() {return "ClearGrid";}
|
|---|
| 37 | static int Arguments() {return 1;}
|
|---|
| 38 | };
|
|---|
| 39 |
|
|---|
| 40 | CREATE_INITIALIZER(VMGCommandClearGrid)
|
|---|
| 41 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.