[Gmsh] Min(), Max() in Gmsh
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Fri Feb 1 19:49:52 CET 2013
On 31 Jan 2013, at 18:52, Nico Schlömer <nico.schloemer at gmail.com> wrote:
> Hi all,
>
> as far as I can see now, there's no such thing as a Min() or Max()
> operator in Gmsh yet. Any chances of adding it in the next release?
> If you know a workaround, let me know (if it's involving the legendary
> python interface, I'd be happy to dig into it).
>
You can use "?:" in the .geo. For Min(b,c) would be written :
a = (b < c) ? b : c;
Christophe
> --Nico
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine