/** * @file com_clear_grid.cpp * @author Julian Iseringhausen * @date Mon Apr 18 12:32:44 2011 * * @brief Overwrites all grid values with zero. * */ #ifdef HAVE_CONFIG_H #include #endif #include "base/command.hpp" #include "base/factory.hpp" #include "comm/comm.hpp" #include "grid/multigrid.hpp" #include "mg.hpp" using namespace VMG; class VMGCommandClearGrid : public Command { public: Request Run(Command::argument_vector arguments) { MG::GetFactory().GetObject(arguments[0])->Cast()->ClearAll(); return Continue; } static const char* Name() {return "ClearGrid";} static int Arguments() {return 1;} }; CREATE_INITIALIZER(VMGCommandClearGrid);