void peanoclaw::statistics::LevelStatisticsPacked::toString (std::ostream& out) const { out << "("; out << "area:" << getArea(); out << ","; out << "level:" << getLevel(); out << ","; out << "numberOfPatches:" << getNumberOfPatches(); out << ","; out << "numberOfCells:" << getNumberOfCells(); out << ","; out << "numberOfCellUpdates:" << getNumberOfCellUpdates(); out << ","; out << "createdPatches:" << getCreatedPatches(); out << ","; out << "destroyedPatches:" << getDestroyedPatches(); out << ","; out << "patchesBlockedDueToNeighbors:" << getPatchesBlockedDueToNeighbors(); out << ","; out << "patchesBlockedDueToGlobalTimestep:" << getPatchesBlockedDueToGlobalTimestep(); out << ","; out << "patchesSkippingIteration:" << getPatchesSkippingIteration(); out << ","; out << "patchesCoarsening:" << getPatchesCoarsening(); out << ","; out << "estimatedNumberOfRemainingIterationsToGlobalTimestep:" << getEstimatedNumberOfRemainingIterationsToGlobalTimestep(); out << ")"; }
peanoclaw::statistics::LevelStatisticsPacked peanoclaw::statistics::LevelStatistics::convert() const{ return LevelStatisticsPacked( getArea(), getLevel(), getNumberOfPatches(), getNumberOfCells(), getNumberOfCellUpdates(), getCreatedPatches(), getDestroyedPatches(), getPatchesBlockedDueToNeighbors(), getPatchesBlockedDueToGlobalTimestep(), getPatchesSkippingIteration(), getPatchesCoarsening(), getEstimatedNumberOfRemainingIterationsToGlobalTimestep() ); }
Patch* PatchRegistry::create(unsigned int index) { if(index < getNumberOfPatches()) return (*creators[index])(); return NULL; }
const char* PatchRegistry::getName(unsigned int index){ if(index < getNumberOfPatches()) return names[index]; return ""; }