SG++
sgpp::combigrid::LevelInfos Class Reference

#include <LevelHelpers.hpp>

Public Member Functions

std::shared_ptr< RefinementInfosPerStepgetInfos ()
 
void incrementCounter ()
 increments the counter -> new refinement iteration started More...
 
void insert (const MultiIndex &level, LevelInfo &levelInfo)
 insert information on a new level that has been added during the current refinement iteration More...
 
 LevelInfos ()
 
void maxNormPerIteration (sgpp::base::DataVector &maxNorms)
 computes the maximum norm of all levels per refinement iteration. More...
 
virtual ~LevelInfos ()
 

Constructor & Destructor Documentation

sgpp::combigrid::LevelInfos::LevelInfos ( )
sgpp::combigrid::LevelInfos::~LevelInfos ( )
virtual

Member Function Documentation

std::shared_ptr< RefinementInfosPerStep > sgpp::combigrid::LevelInfos::getInfos ( )
Returns
the currently stored information
void sgpp::combigrid::LevelInfos::incrementCounter ( )

increments the counter -> new refinement iteration started

void sgpp::combigrid::LevelInfos::insert ( const MultiIndex level,
LevelInfo levelInfo 
)

insert information on a new level that has been added during the current refinement iteration

Parameters
levelMultiIndex representing the level
levelInfoinformation on the level containing norm, priority, numGridPoints, etc.
void sgpp::combigrid::LevelInfos::maxNormPerIteration ( sgpp::base::DataVector maxNorms)

computes the maximum norm of all levels per refinement iteration.

This can be used as an indicator for the error of the combigrid solution.

Parameters
maxNormsreturn vector; contains the maximum norm of all levels per iteration

The documentation for this class was generated from the following files: