https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TestSetupStatusComponent.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11#include "FlowChannelBase.h"
12
13registerMooseObject("ThermalHydraulicsTestApp", TestSetupStatusComponent);
14
17{
19
20 params.addRequiredParam<std::string>("flow_channel", "Name of flow channel to use for test");
21
22 return params;
23}
24
29
30void
32{
33 const FlowChannelBase & flow_channel = getComponent<FlowChannelBase>("flow_channel");
34
35 // This call should throw an error because FlowChannelBase initializes the data required
36 // by this call in its init() function, which due to the ordering in the
37 // test input file, should not have been called at this point.
38 flow_channel.getFlowModel();
39}
registerMooseObject("ThermalHydraulicsTestApp", TestSetupStatusComponent)
Base class for THM components.
Definition Component.h:32
static InputParameters validParams()
Definition Component.C:18
A base class for flow channels.
virtual std::shared_ptr< const FlowModel > getFlowModel() const
void addRequiredParam(const std::string &name, const std::string &doc_string)
Component used to test setup-status-checking capability.
TestSetupStatusComponent(const InputParameters &params)
static InputParameters validParams()
virtual void init() override
Initializes the component.