/** * @file com_export_solution.cpp * @author Julian Iseringhausen * @date Mon Apr 18 12:36:40 2011 * * @brief Executes MGInterface::ExportSolution(sol) * */ #ifdef HAVE_CONFIG_H #include #endif #include "base/command.hpp" #include "base/factory.hpp" #include "grid/multigrid.hpp" #include "interface/interface.hpp" #include "mg.hpp" using namespace VMG; class VMGCommandExportSolution : public Command { public: Request Run(Command::argument_vector arguments) { Multigrid& sol = *MG::GetSol(); MG::GetInterface()->ExportSolution(sol(sol.MaxLevel())); return Continue; } static const char* Name() {return "ExportSolution";} static int Arguments() {return 0;} }; CREATE_INITIALIZER(VMGCommandExportSolution);