26 params.
addParam<NonlinearSystemName>(
27 "nl_sys",
"nl0",
"The nonlinear system that we should output information for.");
35 _nl_sys_num(_problem_ptr->nlSysNum(getParam<NonlinearSystemName>(
"nl_sys")))
51 std::ofstream slh_file;
52 slh_file.open(
filename().c_str(), std::ios::app);
59 slh_file <<
" " << linear_its;
61 slh_file << std::endl;
virtual void output() override
Output the data to *.slh file.
SolutionHistory(const InputParameters ¶meters)
Class constructor.
std::string _file_base
The base filename from the input paramaters.
static InputParameters validParams()
Nonlinear system to be solved.
std::vector< unsigned int > _current_l_its
unsigned int _current_nl_its
FEProblemBase * _problem_ptr
Pointer the the FEProblemBase object for output object (use this)
static InputParameters validParams()
NonlinearSystemBase & getNonlinearSystemBase(const unsigned int sys_num)
virtual std::string filename() override
The filename for the output file.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
registerMooseObject("MooseApp", SolutionHistory)
An outputter with filename support.
const unsigned int _nl_sys_num
The nonlinear system number we should output information for.
Based class for adding basic filename support to output base class.