Kyusik,

On Friday, May 19, 2017 at 8:27:39 AM UTC-4, hanks0...@gmail.com wrote:
>
>
>   std::vector<Tensor<1,dim> > sol_grad(n_q_points);
>
 

>             cell_rhs(i) += fe_values2.shape_value(i,q_index) *
>                             sol_grad[q_index] *(F/p(0)/grad_sol_sq)*
>                             fe_values2.JxW(q_index);
>
 

> /user2/hanks318/dealii/dealii_pre/examples/step-6/step-6.cc:665: error: no 
> match for ‘operator+=’ in ‘cell_rhs.dealii::Vector<number>::operator() 
> [with Number = double](i) += dealii::operator*(const dealii::Tensor<1, dim, 
> double>&, double) [with int dim = 2](fe_values2.dealii::FEValues<2, 
> 2>::<anonymous>.dealii::FEValuesBase<dim, spacedim>::JxW [with int dim = 2, 
> int spacedim = 2](q_index))’
>
sol_grad[q_index] is a Tensor<1,dim,double> so it has dim components. You 
cannot add it to a double.

Best,

Bruno

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to