49 m_bc_strategy_factories(factories)
54 Teuchos::RCP<panzer::BCStrategy_TemplateManager<panzer::Traits> >
57 const Teuchos::RCP<panzer::GlobalData>& global_data)
const
59 Teuchos::RCP<panzer::BCStrategy_TemplateManager<panzer::Traits> > bcs_tm;
63 for (std::vector<Teuchos::RCP<panzer::BCStrategyFactory> >::const_iterator factory =
m_bc_strategy_factories.begin();
66 bcs_tm = (*factory)->buildBCStrategy(bc,global_data);
68 if (nonnull(bcs_tm)) {
75 TEUCHOS_TEST_FOR_EXCEPTION(!found, std::logic_error,
76 "Error - the BC Strategy called \"" << bc.
strategy() <<
77 "\" is not a valid identifier in the BCStrategyFactory. Either add " <<
78 "a valid implementation to the factory or fix the input file. The " <<
79 "relevant boundary condition is:\n\n" << bc << std::endl);
Stores input information for a boundary condition.
std::string strategy() const
Returns the keyword used to construct a bc strategy.
BCFactoryComposite(const std::vector< Teuchos::RCP< panzer::BCStrategyFactory > > &factories)
Teuchos::RCP< panzer::BCStrategy_TemplateManager< panzer::Traits > > buildBCStrategy(const panzer::BC &bc, const Teuchos::RCP< panzer::GlobalData > &global_data) const
std::vector< Teuchos::RCP< panzer::BCStrategyFactory > > m_bc_strategy_factories