Kyusik,

On Friday, September 23, 2016 at 2:09:26 AM UTC-4, hanks0...@gmail.com 
wrote:
>
> In the lecture, previous_solution_gradients[] is used. But, I also want to 
> know How I can use just previous_solution[].
>
> At first, I used previous_solution[q_index] in assemble_system as in 
> previous_solution_gradients[q_index]
>
> But, It seems that What I did was wrong...
>
> What does that mean? It doesn't compile? The value is wrong?

I also want to know maximum value of previous_solution.
>
> So, What I have done is following...
>
> Vector<double>::iterator max;
> double max_val;
> max=std::max_element(pre_solution.begin(),pre_solution.end());
> max_val=(*max);
>
> Is it right way??
>
Depends on the kind of finite elements you are using. If you are using 
Lagrange finite elements, yes it is correct.

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