use of linear solver in cs_user_solver
Posted: Wed Feb 27, 2019 3:29 pm
Hello,
I am trying to adapt the example "cs_user_solver-heat-equation.c" for my own application. However for my application, an implicit scheme requiring a linear solver is used. I would like to know how I could define and assemble a matrix, and then use a linear solver to resolve it, please! A small example or some indications will help a lot, as I am trying to read through the files in src/alge, but it is not that easy to understand.
Thanks in advance!
Best regards,
Lei
I am trying to adapt the example "cs_user_solver-heat-equation.c" for my own application. However for my application, an implicit scheme requiring a linear solver is used. I would like to know how I could define and assemble a matrix, and then use a linear solver to resolve it, please! A small example or some indications will help a lot, as I am trying to read through the files in src/alge, but it is not that easy to understand.
Thanks in advance!
Best regards,
Lei