47 #include "Teko_PreconditionerState.hpp"
49 #include "Thyra_DefaultPreconditioner.hpp"
51 using namespace Thyra;
57 void PreconditionerState::setParameterList(
const RCP<Teuchos::ParameterList> & paramList)
59 paramList_ = paramList;
63 RCP<Teuchos::ParameterList> PreconditionerState::getNonconstParameterList()
65 if(paramList_==Teuchos::null)
66 paramList_ = Teuchos::rcp(
new Teuchos::ParameterList());
72 RCP<Teuchos::ParameterList> PreconditionerState::unsetParameterList()
74 RCP<Teuchos::ParameterList> paramList = paramList_;
75 paramList_ = Teuchos::null;
83 linearOps_.insert(ps.linearOps_.begin(),ps.linearOps_.end());
86 Teuchos::ParameterList::ConstIterator itr;
88 Teuchos::RCP<Teuchos::ParameterList> paramList = getNonconstParameterList();
90 paramList->setEntry(itr->first,itr->second);
95 unsigned int PreconditionerState::getTag()
const
101 void PreconditionerState::setTag(
unsigned int tag)
Teuchos::RCP< Teuchos::ParameterList > paramList_
for ParameterListAcceptor
An implementation of a state object preconditioners.