On 6/18/23 11:43, ME20D503 NEWTON wrote:
/home/newton/dealii-candi/deal.II-v9.4.2/examples/cook_membrane/cook_membrane.cc:2288:62: error: cannot convert ‘std::vector<dealii::Tensor<2, 3, 
Sacado::Fad::Exp::GeneralFad<Sacado::Fad::Exp::DynamicStorage<double, double> > >, std::allocator<dealii::Tensor<2, 3, 
Sacado::Fad::Exp::GeneralFad<Sacado::Fad::Exp::DynamicStorage<double, double> > > > >’ to ‘std::vector<dealii::Tensor<2, 3, 
double>, std::allocator<dealii::Tensor<2, 3, double> > >&’

2288 | scratch.solution_grads_u_total);

| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~


I don't know what you have changed about this program, and since you don't attach it, it's hard to tell *why* this error is happening.

But the compiler is quite clear about *what* is happening: You are trying to call a function that expects an argument of type
  std::vector<Tensor<2, 3, double>>
with an argument of type
std::vector<Tensor<2, 3, Sacado::Fad::Exp::GeneralFad<Sacado::Fad::Exp::DynamicStorage<double, double>>>

The compiler is simply telling you that that won't work. Since I don't know the code, I can't tell you how to fix this beyond the description above.

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/c9275fa6-d6d4-d885-4887-17fa10e9177a%40colostate.edu.

Reply via email to