[Gmsh] Max in a character expression

Martin Genet mgenet at lbl.gov
Fri Mar 23 02:03:45 CET 2012


Hello:

I need to define a Field of type MathEval taking the max of two numbers (e.g., max(x, y)). For the moment, I do it by defining a first field of type MathEval (e.g., x), a second field of type MathEval (e.g., y), and a third one of type Max, but that would be more convenient to be able to use directly the function max as the other function (Fabs, etc.). Is it already possible? If not, is it easily implementable —any directions much appreciated?

Thanks for bringing the power of GMSH to the people.

Martin