Min/Max over a domain

Hello,

Is there an easy way to get the min/max values of a scalar field on a specific sub-domain defined by a list of tags ? Something like int1d : Min(Th,tags)(u) ?

Thanks.

Ok, this no trivial,
because min, max are not integral, and le max of P2 function is on the node.

So the compute this first build the sub-domain with trunc., when build a finite element function on this mesh interpolate and take the min, max of dof array.

Hello,
Thanks for your answer.
Unfortunately trunc seems not working using a edge label ; I always get the entire mesh (i check using the restriction mesh on the border label through nbe and nt (must be 0)).
Any idea ?
Moreover I need to get the min/max coordinates reached…

Thansk for helping Pr.