Ali,
I'm very new to Deal.ii and trying to understand it through modifying
step-15. However I get the following error. Although it is descriptive I'm
unable to figure out the problem:
"error: no match for ‘operator*’ (operand types are ‘const dealii::Tensor<1,
2>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<dealii::Vector<double> >
>::value_type {aka dealii::Vector<double>}’)
* old_solution_values[q] "
What the error message is telling you is that you are trying to take the
product (with operator *) between a Tensor<1,2> and a Vector<double> object,
but that that is not defined. This is not defined even if the Vector has length 2.
I believe that the error comes out of this statement:
(fe_values.shape_grad(i, q)
* old_solution_values[q]
* fe_values.shape_grad(j, q)))
Here you multiply tensor times vector times tensor. It's not clear to me what
that is supposed to represent, but that's at least where the error is from.
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/115082c4-989c-c25e-d1fe-46f7dc955330%40colostate.edu.