| 285 | } // deallocateOperatorState |
| 286 | |
| 287 | void |
| 288 | EdgeDataSynchronization::synchronizeData(const double fill_time) |
| 289 | { |
| 290 | #if !defined(NDEBUG) |
| 291 | TBOX_ASSERT(d_is_initialized); |
| 292 | #endif |
| 293 | for (int ln = d_finest_ln; ln >= d_coarsest_ln; --ln) |
| 294 | { |
| 295 | Pointer<PatchLevel<NDIM>> level = d_hierarchy->getPatchLevel(ln); |
| 296 | |
| 297 | // Synchronize data on the current level. |
| 298 | for (unsigned int axis = 0; axis < NDIM; ++axis) |
| 299 | { |
| 300 | d_refine_scheds[axis][ln]->fillData(fill_time); |
| 301 | } |
| 302 | |
| 303 | // When appropriate, coarsen data from the current level to the next |
| 304 | // coarser level. |
| 305 | if (ln > d_coarsest_ln && d_coarsen_scheds[ln]) d_coarsen_scheds[ln]->coarsenData(); |
| 306 | } |
| 307 | return; |
| 308 | } // synchronizeData |
| 309 | |
| 310 | /////////////////////////////// PROTECTED //////////////////////////////////// |
| 311 |
no test coverage detected