47 #include "Teko_PreconditionerState.hpp"
49 #include "Thyra_DefaultPreconditioner.hpp"
51 using namespace Thyra;
57 void PreconditionerState::setParameterList(
const RCP<Teuchos::ParameterList>& paramList) {
58 paramList_ = paramList;
62 RCP<Teuchos::ParameterList> PreconditionerState::getNonconstParameterList() {
63 if (paramList_ == Teuchos::null) paramList_ = Teuchos::rcp(
new Teuchos::ParameterList());
69 RCP<Teuchos::ParameterList> PreconditionerState::unsetParameterList() {
70 RCP<Teuchos::ParameterList> paramList = paramList_;
71 paramList_ = Teuchos::null;
78 linearOps_.insert(ps.linearOps_.begin(), ps.linearOps_.end());
81 Teuchos::ParameterList::ConstIterator itr;
83 Teuchos::RCP<Teuchos::ParameterList> paramList = getNonconstParameterList();
85 paramList->setEntry(itr->first, itr->second);
90 unsigned int PreconditionerState::getTag()
const {
return tag_; }
93 void PreconditionerState::setTag(
unsigned int tag) { tag_ = tag; }
Teuchos::RCP< Teuchos::ParameterList > paramList_
for ParameterListAcceptor
An implementation of a state object preconditioners.