OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
olb::parameters::Reader< Stationarity< T >, TAG > Struct Template Reference

#include <solverParameters.h>

+ Inheritance diagram for olb::parameters::Reader< Stationarity< T >, TAG >:
+ Collaboration diagram for olb::parameters::Reader< Stationarity< T >, TAG >:

Public Member Functions

void read (XMLreader const &xml)
 
- Public Member Functions inherited from olb::parameters::ReaderBase< Stationarity< T > >
 ReaderBase (std::shared_ptr< Stationarity< T > > params_)
 

Additional Inherited Members

- Public Attributes inherited from olb::parameters::ReaderBase< Stationarity< T > >
OstreamManager clout
 
std::shared_ptr< Stationarity< T > > params
 

Detailed Description

template<typename T, typename TAG>
struct olb::parameters::Reader< Stationarity< T >, TAG >

Definition at line 321 of file solverParameters.h.

Member Function Documentation

◆ read()

template<typename T , typename TAG >
void olb::parameters::Reader< Stationarity< T >, TAG >::read ( XMLreader const & xml)
inline

Definition at line 325 of file solverParameters.h.

326 {
327 std::string type = "MaxLatticeVelocity";
328 xml.readOrWarn<std::string>("Application", "ConvergenceCheck", "Type", type, true, false, true);
329 this->params->convergenceType[0] = (type == "AverageEnergy") ? Stationarity<T>::AverageEnergy : Stationarity<T>::MaxLatticeVelocity;
330 BaseType<T> help; // needed to prevent typecast errors with util::ADf data type
331 xml.readOrWarn<BaseType<T>>("Application", "ConvergenceCheck", "Interval", help, true, false, true);
332 this->params->physInterval[0] = help;
333 xml.readOrWarn<BaseType<T>>("Application", "ConvergenceCheck", "Residuum", help, true, false, true);
334 this->params->epsilon[0] = help;
335 }
std::shared_ptr< Stationarity< T > > params

References olb::parameters::ReaderBase< PARAMETERS >::params, and olb::XMLreader::readOrWarn().

+ Here is the call graph for this function:

The documentation for this struct was generated from the following file: