Hi,
I was wondering if anyone knows of an existing CoefficientFunction that could be used to get the floor (integer part) of another CoefficientFunction. I could use it to generate an arbitrary periodic initial condition.
Thanks,
Dow
Hi,
I was wondering if anyone knows of an existing CoefficientFunction that could be used to get the floor (integer part) of another CoefficientFunction. I could use it to generate an arbitrary periodic initial condition.
Thanks,
Dow
I guess the easiest way is you implement it yourself, how to create a CoefficientFunction is explained here, how to export it to Python here. Basically you just have to replace the code in the Evaluate function with a call to a C floor function.
Best
Christopher
floor() and ceil() are available for CoefficientFunctions.
Actually, I exported them to define periodic functions,
Joachim