| Rev | Line | |
|---|
| [48b662] | 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 |
|
|---|
| 22 | using namespace VMG;
|
|---|
| 23 |
|
|---|
| 24 | class VMGCommandForceDiscreteCompatibility : public Command
|
|---|
| 25 | {
|
|---|
| 26 | public:
|
|---|
| 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 |
|
|---|
| 38 | CREATE_INITIALIZER(VMGCommandForceDiscreteCompatibility);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.