On 7/19/19 9:34 AM, 'Maxi Miller' via deal.II User Group wrote:
> I.e. (based on step-37) I can write something like
> |
> LinearOperator jacobian_operator;
> //vmult-operation is added later
> 
> using SystemMatrixType = jacobian_operator;
> SystemMatrixType system_matrix;
> |
> 
> and follow the example accordingly?

No. `jacobian_operator` here is the name of a local variable, but in a `using` 
statement, the right hand side needs to be a *type*.

What I'm saying is that you should be able to write something of the sort
   SolverCG<...>  solver_cg;
   solver_cg.solve (system_matrix, solution, rhs,
                    jacobian_operator);
where the last argument is any kind of type that provides a vmult something -- 
whether it's a matrix, a class with a vmult function, or a linear operator.

Best
  W.

-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                            www: http://www.math.colostate.edu/~bangerth/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/73877be0-e337-bf85-2792-ba31837a91b1%40colostate.edu.

Reply via email to