Changeset a24b80 for src/mg.cpp
- Timestamp:
- Jun 11, 2012, 3:01:12 PM (13 years ago)
- Children:
- 290aa3
- Parents:
- 2d4211
- File:
-
- 1 edited
-
src/mg.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/mg.cpp
r2d4211 ra24b80 125 125 } 126 126 127 void MG::SetInterface(VMG::Interface* interface, VMG::Comm* comm) 128 { 129 interface->Register("INTERFACE"); 130 131 Multigrid* sol = new Multigrid(comm, interface); 132 Multigrid* rhs = new Multigrid(comm, interface); 127 /* 128 * Post init communication class 129 */ 130 void MG::PostInit() 131 { 132 Multigrid* sol = new Multigrid(GetComm(), GetInterface()); 133 sol->Register("SOL"); 134 135 Multigrid* rhs = new Multigrid(GetComm(), GetInterface()); 136 rhs->Register("RHS"); 137 133 138 TempGrid* temp = new TempGrid(); 134 135 sol->Register("SOL");136 rhs->Register("RHS");137 139 temp->Register("TEMPGRID"); 138 140 … … 140 142 new ObjectStorage<int>("MINLEVEL", sol->MinLevel()); 141 143 new ObjectStorage<int>("MAXLEVEL", sol->MaxLevel()); 142 } 143 144 /* 145 * Post init communication class 146 */ 147 void MG::PostInit() 148 { 144 149 145 GetComm()->PostInit(*GetSol(), *GetRhs()); 150 146 }
Note:
See TracChangeset
for help on using the changeset viewer.
