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