That gives me
error: no matching function for call to ‘max(double&, dealii::
TrilinosWrappers::internal::VectorReference)’
                 max_TE_value = std::max(max_TE_value, old_solution(i));

during compilation.


Am Montag, 19. März 2018 14:22:55 UTC+1 schrieb Wolfgang Bangerth:
>
> On 03/19/2018 07:13 AM, 'Maxi Miller' via deal.II User Group wrote: 
> > Assumed I do the latter, do you have any example codes for that? I get 
> the 
> > component mask, but do not know how to combine the mask with my vector. 
>
> The mask is a set of n_dofs true/false values. You'd then do something 
> like 
>    for (i=0...n_dofs) 
>      if (mask[i] == true) 
>        max_value = std::max (max_value, vec(i)); 
>
> Best 
>   W. 
>
> -- 
> ------------------------------------------------------------------------ 
> Wolfgang Bangerth          email:                 bang...@colostate.edu 
> <javascript:> 
>                             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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to