[Trilinos-Users] [EXTERNAL] how to extract solution from Belos::LinearProblem ... updateSolution() does not work as expected
Klinvex, Alicia Marie
amklinv at sandia.gov
Wed Jun 21 09:48:37 EDT 2017
Hello Joachim,
The approximate solution should be stored in the vector LHS.
Best wishes,
Alicia
-----Original Message-----
From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of Joachim Wuttke
Sent: Sunday, June 18, 2017 9:49 AM
To: trilinos-users at trilinos.org
Subject: [EXTERNAL] [Trilinos-Users] how to extract solution from Belos::LinearProblem ... updateSolution() does not work as expected
The code example in
https://github.com/trilinos/Trilinos_tutorial/wiki/IfpackBelos2
tells me that Belos did converge,
but not what solution was found.
From the Doxygen API documentation of Belos::LinearProblem I figured I could extract the solution by
const Teuchos::RCP<MV> sln = problem->updateSolution(); However, this does not work as I expected:
sln is a null vector.
What did I understand wrong?
More information about the Trilinos-Users
mailing list