IFEM  90A354
Classes | Public Member Functions | Private Attributes | List of all members
LinSolParams Class Reference

Class for linear solver parameters. More...

#include <LinSolParams.h>

Inheritance diagram for LinSolParams:
Inheritance graph
[legend]
Collaboration diagram for LinSolParams:
Collaboration graph
[legend]

Classes

class  BlockParams
 Linear solver settings for a block of the linear system. More...
 

Public Member Functions

 LinSolParams (LinAlg::LinearSystemType ls=LinAlg::GENERAL_MATRIX)
 Default constructor.
 
 LinSolParams (const LinSolParams &par, LinAlg::LinearSystemType ls=LinAlg::GENERAL_MATRIX)
 Copy constructor.
 
bool read (const tinyxml2::XMLElement *elem)
 Read linear solver parameters from XML document.
 
size_t getNoBlocks () const
 Number of blocks in matrix system.
 
const BlockParamsgetBlock (size_t i) const
 Obtain settings for a given block.
 
LinAlg::LinearSystemType getLinSysType () const
 Returns the linear system type.
 
- Public Member Functions inherited from SettingMap
void addValue (const std::string &key, const std::string &value)
 Add a value to the store. More...
 
std::string getStringValue (const std::string &key) const
 Obtain a value as a string. More...
 
int getIntValue (const std::string &key) const
 Obtain a value as an integer. More...
 
double getDoubleValue (const std::string &key) const
 Obtain a value as an double. More...
 
bool hasValue (const std::string &key) const
 Checks if the store holds a value for a key. More...
 

Private Attributes

std::vector< BlockParamsblocks
 Parameters for each block.
 
LinAlg::LinearSystemType linSys
 Type of linear system matrix.
 

Additional Inherited Members

- Protected Attributes inherited from SettingMap
std::map< std::string, std::string > values
 Map of key-value pairs.
 

Detailed Description

Class for linear solver parameters.

It contains information about solver method, preconditioner and convergence criteria.


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