SG++-Doxygen-Documentation
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

◆ LevelInfos()

sgpp::combigrid::LevelInfos::LevelInfos ( )

◆ ~LevelInfos()

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

Member Function Documentation

◆ getInfos()

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

◆ incrementCounter()

void sgpp::combigrid::LevelInfos::incrementCounter ( )

increments the counter -> new refinement iteration started

◆ insert()

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.

◆ maxNormPerIteration()

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

References python.statsfileInfo::i.


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