Commit df3009a9 by Christophe Geuzaine

fix #2

parent 48437da2
Pipeline #316 passed with stage
in 8 minutes 50 seconds
Showing with 16 additions and 0 deletions
......@@ -146,6 +146,9 @@
// "/" -> binary_divide
// "^" -> binary_power
// "%" -> fmod (defined in math.h)
// ADDED FOR GMSH:
// "<" -> binary_less
// ">" -> binary_greater
///////////////////////////////////////////////////////////
//////////////////////
......@@ -189,6 +192,16 @@
return pow(x,y);
} // binary_power()
double binary_less(double x, double y)
{
return (double)(x < y);
} // binary_less()
double binary_greater(double x, double y)
{
return (double)(x > y);
} // binary_greater()
/////////////////////////////////////////
// pre-defined user defined functions
//---------------------------------------
......@@ -362,6 +375,9 @@
{ '/', binary_divide},
{ '^', binary_power},
{ '%', fmod},
// ADDED FOR GMSH
{ '<', binary_less},
{ '>', binary_greater},
{ '\0' , 0 } // '\0' mark the end of table
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment