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

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

#include <LinSolParams.h>

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

Classes

struct  DirSmoother
 Settings for a directional smoother. More...
 

Public Member Functions

 BlockParams ()
 Default constructor.
 
bool read (const tinyxml2::XMLElement *child, const std::string &prefix="")
 Read settings from XML block. More...
 
- 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...
 

Public Attributes

size_t basis
 Basis for block.
 
size_t comps
 Components from basis (1, 2, 3, 12, 13, 23, 123, ..., 0 = all)
 
std::vector< DirSmootherdirSmoother
 Directional smoother data.
 

Additional Inherited Members

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

Detailed Description

Linear solver settings for a block of the linear system.

Member Function Documentation

◆ read()

bool LinSolParams::BlockParams::read ( const tinyxml2::XMLElement *  child,
const std::string &  prefix = "" 
)

Read settings from XML block.

Parameters
[in]childXML block
[in]prefixPrefix to add to read data

References SettingMap::addValue(), basis, comps, dirSmoother, utl::getAttribute(), SettingMap::getIntValue(), SettingMap::getStringValue(), utl::getValue(), and SettingMap::hasValue().


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