Changeset dfed1c for src/commands/com_force_discrete_compatibility.cpp
- Timestamp:
- Nov 22, 2011, 9:22:10 PM (14 years ago)
- Children:
- facba0
- Parents:
- 66f24d
- File:
-
- 1 edited
-
src/commands/com_force_discrete_compatibility.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/commands/com_force_discrete_compatibility.cpp
r66f24d rdfed1c 6 6 * @brief May be used to explicitly force the discrete 7 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. 8 * 11 9 */ 12 10 … … 27 25 Request Run(Command::argument_vector arguments) 28 26 { 29 (*MG::GetRhs())().ForceDiscreteCompatibilityCondition(); 27 MPE_EVENT_BEGIN() 28 29 Grid& rhs = (*MG::GetRhs())(MG::GetRhs()->MaxLevel()); 30 Comm& comm = *MG::GetComm(); 31 32 if (comm.BoundaryConditions()[0] == Periodic && 33 comm.BoundaryConditions()[1] == Periodic && 34 comm.BoundaryConditions()[2] == Periodic) 35 rhs.ForceDiscreteCompatibilityCondition(); 36 37 MPE_EVENT_END() 30 38 31 39 return Continue; … … 36 44 }; 37 45 38 CREATE_INITIALIZER(VMGCommandForceDiscreteCompatibility) ;46 CREATE_INITIALIZER(VMGCommandForceDiscreteCompatibility)
Note:
See TracChangeset
for help on using the changeset viewer.
