10 #include "Teko_PreconditionerState.hpp"
12 #include "Thyra_DefaultPreconditioner.hpp"
14 using namespace Thyra;
20 void PreconditionerState::setParameterList(
const RCP<Teuchos::ParameterList>& paramList) {
21 paramList_ = paramList;
25 RCP<Teuchos::ParameterList> PreconditionerState::getNonconstParameterList() {
26 if (paramList_ == Teuchos::null) paramList_ = Teuchos::rcp(
new Teuchos::ParameterList());
32 RCP<Teuchos::ParameterList> PreconditionerState::unsetParameterList() {
33 RCP<Teuchos::ParameterList> paramList = paramList_;
34 paramList_ = Teuchos::null;
41 linearOps_.insert(ps.linearOps_.begin(), ps.linearOps_.end());
44 Teuchos::ParameterList::ConstIterator itr;
46 Teuchos::RCP<Teuchos::ParameterList> paramList = getNonconstParameterList();
48 paramList->setEntry(itr->first, itr->second);
53 unsigned int PreconditionerState::getTag()
const {
return tag_; }
56 void PreconditionerState::setTag(
unsigned int tag) { tag_ = tag; }
Teuchos::RCP< Teuchos::ParameterList > paramList_
for ParameterListAcceptor
An implementation of a state object preconditioners.