www.mooseframework.org
Functions
MutableCoefficientsInterface.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< MutableCoefficientsInterface > ()
 
std::ostream & operator<< (std::ostream &stream, const MutableCoefficientsInterface &me)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const MutableCoefficientsInterface me 
)

Definition at line 186 of file MutableCoefficientsInterface.C.

187 {
188  const MooseObject * myself_again = dynamic_cast<const MooseObject *>(&me);
189  stream << "\n\n"
190  << "MutableCoefficientsInterface: " << (myself_again ? myself_again->name() : "Unknown")
191  << "\n"
192  << " Number of Coefficients: " << me.getSize() << "\n";
193 
194  for (std::size_t i = 0; i < me.getSize(); ++i)
195  stream << std::setw(4) << i << ": " << std::setw(12) << me[i] << ((i % 6 == 5) ? "\n" : " ");
196 
197  stream << "\n\n";
198 
199  return stream;
200 }

◆ validParams< MutableCoefficientsInterface >()

template<>
InputParameters validParams< MutableCoefficientsInterface > ( )

Definition at line 19 of file MutableCoefficientsInterface.C.

20 {
21  InputParameters params = emptyInputParameters();
22 
23  params.addClassDescription("This interface universalizes the communication standards for "
24  "array-based coefficient transfers.");
25 
26  params.addParam<bool>("print_when_set", false, "Print the array of coefficients when set");
27 
28  return params;
29 }

Referenced by validParams< FXIntegralBaseUserObjectParameters >(), and validParams< MutableCoefficientsFunctionInterface >().

MutableCoefficientsInterface::getSize
std::size_t getSize() const
Get the size, aka number of coefficients.
Definition: MutableCoefficientsInterface.C:80