source: src/commands/com_force_discrete_compatibility.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: 968 bytes
Line 
1/**
2 * @file com_force_discrete_compatibility.cpp
3 * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
4 * @date Mon Apr 18 12:37:11 2011
5 *
6 * @brief May be used to explicitly force the discrete
7 * compatibility condition \sum_{i,j,k} f_{i,j,k} = 0.
8 * This should not be necessary since this is also
9 * handled in the library for arbitrary compatibility
10 * conditions.
11 */
12
13#ifdef HAVE_CONFIG_H
14#include <config.h>
15#endif
16
17#include "base/command.hpp"
18#include "grid/grid.hpp"
19#include "grid/multigrid.hpp"
20#include "mg.hpp"
21
22using namespace VMG;
23
24class VMGCommandForceDiscreteCompatibility : public Command
25{
26public:
27 Request Run(Command::argument_vector arguments)
28 {
29 (*MG::GetRhs())().ForceDiscreteCompatibilityCondition();
30
31 return Continue;
32 }
33
34 static const char* Name() {return "ForceDiscreteCompatibility";}
35 static int Arguments() {return 0;}
36};
37
38CREATE_INITIALIZER(VMGCommandForceDiscreteCompatibility);
Note: See TracBrowser for help on using the repository browser.