source: src/commands/com_clear_coarse_levels.cpp@ 2fad0e0

Last change on this file since 2fad0e0 was 48b662, checked in by Olaf Lenz <olenz@…>, 14 years ago

Moved files in scafacos_fcs one level up.

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

  • Property mode set to 100644
File size: 782 bytes
Line 
1/**
2 * @file com_clear_coarse_levels.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:32:12 2011
5 *
6 * @brief Overwrites all grid values of all grids except
7 * the finest one with zeros.
8 *
9 */
10
11#ifdef HAVE_CONFIG_H
12#include <config.h>
13#endif
14
15#include "base/command.hpp"
16#include "base/factory.hpp"
17#include "grid/multigrid.hpp"
18
19using namespace VMG;
20
21class VMGCommandClearCoarseLevels : public Command
22{
23public:
24 Request Run(Command::argument_vector arguments)
25 {
26 MG::GetFactory().GetObject(arguments[0])->Cast<Multigrid>()->ClearAllCoarseLevels();
27
28 return Continue;
29 }
30
31 static const char* Name() {return "ClearCoarseLevels";}
32 static int Arguments() {return 1;}
33};
34
35CREATE_INITIALIZER(VMGCommandClearCoarseLevels);
36
Note: See TracBrowser for help on using the repository browser.