Go to the documentation of this file.00001
00002 #include "AAdapt_SolutionObserver.hpp"
00003
00004 namespace AAdapt {
00005
00006 void
00007 SolutionObserver::observeResponse(
00008 int j,
00009 const Teuchos::RCP<Thyra::ModelEvaluatorBase::OutArgs<double> >& outArgs_,
00010 const Teuchos::RCP<Teuchos::Array<Teuchos::RCP<const Thyra::VectorBase<double> > > > &responses_,
00011 const Teuchos::RCP<const Thyra::VectorBase<double> > &g)
00012 {
00013 outArgs = outArgs_;
00014 responses = responses_;
00015 }
00016
00017 void
00018 SolutionObserver::set_g_vector(
00019 int j,
00020 const Teuchos::RCP<Thyra::VectorBase<double> >& g_j)
00021 {
00022 outArgs->set_g(j, g_j);
00023 (*responses)[j] = g_j;
00024 }
00025
00026 }
00027