/** * @file com_print_inner_grid.cpp * @author Julian Iseringhausen * @date Mon Apr 18 12:46:31 2011 * * @brief Writes a given grid excluding boundary and halo * to a VTKStructuredPoints file in output/date_time * */ #ifdef HAVE_CONFIG_H #include #endif #include #include "base/command.hpp" #include "base/factory.hpp" #include "comm/comm.hpp" #include "grid/multigrid.hpp" #include "mg.hpp" using namespace VMG; class VMGCommandPrintInnerGrid : public Command { public: Request Run(Command::argument_vector arguments) { std::ostringstream buffer; Multigrid& grid = *MG::GetFactory().GetObject(arguments[0])->Cast(); buffer << "Level " << grid.Level() << " " << arguments[0]; MG::GetComm()->PrintInnerGrid(grid(), buffer.str().c_str()); return Continue; } static const char* Name() {return "PrintInnerGrid";} static int Arguments() {return 1;} }; CREATE_INITIALIZER(VMGCommandPrintInnerGrid);