Closed zhengshuang2005 closed 4 years ago
@trilinos/belos
Problem resolved. It happened because long as global indices Is disabled in the Trilinos compilation.
@zhengshuang2005 You should only ever use global index types that are enabled at configure time (e.g., with a CMake option).
Where is this "https://trilinos.org/docs/r12.12/packages/belos/doc/html/classBelos_1_1SolverFactory.html". file that @zhengshuang2005 mentioned? It looks like a good example, but I don't see the full file anywhere. Looks like that link is no longer valid.
@cgcgcg, thank you. However, I do not see a "tutorial" on that page as was referenced by @zhengshuang2005. He stated "I used the Belos solver package and followed the Belos solver package tutorial as shown on the Doxygen page". Perhaps he made his own code based on the documentation.
As far as I know there is no such tutorial, but lemme tag @hkthorn.
@abodado There are not adequate examples for using the Belos linear solver factory at this time. The examples we have only illustrate constructing a specific solver object directly. That is an omission I'll look into correcting ASAP.
Thank you @cgcgcg and @hkthorn for looking into this.
Dear Developers,
I want to ask a question related to Belos solver factory.
I used the Belos solver package and followed the Belos solver package tutorial as shown on the Doxygen page "https://trilinos.org/docs/r12.12/packages/belos/doc/html/classBelos_1_1SolverFactory.html". It used to work with the old Trilinos version I was using. However, recently I upgraded my Trilinos version to the latest one (12.12) and when I ran the solver again, it gives the following error:
I don't know what has happened and could you please point out where I did wrong? My function using the Belis solver is as follows. I have also attached my Trilinos cmake script for your reference.
Thank you and looking forward to your reply!
Best regards, Shuang