| Rev | Line | |
|---|
| [48b662] | 1 | /**
|
|---|
| 2 | * @file com_export_solution.cpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:36:40 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Executes MGInterface::ExportSolution(sol)
|
|---|
| 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 "grid/multigrid.hpp"
|
|---|
| 17 | #include "interface/interface.hpp"
|
|---|
| 18 | #include "mg.hpp"
|
|---|
| 19 |
|
|---|
| 20 | using namespace VMG;
|
|---|
| 21 |
|
|---|
| 22 | class VMGCommandExportSolution : public Command
|
|---|
| 23 | {
|
|---|
| 24 | public:
|
|---|
| 25 | Request Run(Command::argument_vector arguments)
|
|---|
| 26 | {
|
|---|
| 27 | Multigrid& sol = *MG::GetSol();
|
|---|
| 28 |
|
|---|
| 29 | MG::GetInterface()->ExportSolution(sol(sol.MaxLevel()));
|
|---|
| 30 |
|
|---|
| 31 | return Continue;
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | static const char* Name() {return "ExportSolution";}
|
|---|
| 35 | static int Arguments() {return 0;}
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | CREATE_INITIALIZER(VMGCommandExportSolution);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.