source: src/commands/com_print_inner_grid.cpp@ 138f86

Last change on this file since 138f86 was dfed1c, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Major vmg update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1136 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * @file com_print_inner_grid.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:46:31 2011
5 *
6 * @brief Writes a given grid excluding boundary and halo
7 * to a VTKStructuredPoints file in output/date_time
8 *
9 */
10
11#ifdef HAVE_CONFIG_H
12#include <config.h>
13#endif
14
15#include <sstream>
16
17#include "base/command.hpp"
18#include "base/factory.hpp"
19#include "comm/comm.hpp"
20#include "grid/multigrid.hpp"
21#include "mg.hpp"
22
23using namespace VMG;
24
25class VMGCommandPrintInnerGrid : public Command
26{
27public:
28 Request Run(Command::argument_vector arguments)
29 {
30 MPE_EVENT_BEGIN()
31
32 std::ostringstream buffer;
33 Multigrid& grid = *MG::GetFactory().Get(arguments[0])->Cast<Multigrid>();
34
35 buffer << "Level " << grid.Level() << " " << arguments[0];
36
37 MG::GetComm()->PrintInnerGrid(grid(), buffer.str().c_str());
38
39 MPE_EVENT_END();
40
41 return Continue;
42 }
43
44 static const char* Name() {return "PrintInnerGrid";}
45 static int Arguments() {return 1;}
46};
47
48CREATE_INITIALIZER(VMGCommandPrintInnerGrid)
Note: See TracBrowser for help on using the repository browser.