On 4/25/19 7:56 AM, Gabriel Peters wrote: > I wanted solution_o to be vector-valued. > And I want to multiply it with a gradient function. So I want > > local_matrix(i,j) += solution_o * fe_values[velocities].shape_gradient(i,q) > * > fe_values[velocities].shape_gradient(j,q); > > Does this look any better?
Much :-) And if you take solution_o from the vector of tensors I mentioned, this should indeed work out. Best W. -- ------------------------------------------------------------------------ Wolfgang Bangerth email: [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
