Min and max statements in Mako

Hi all,

I'm implementing a low Mach fix into the Roe Riemann solver and I'm using min and max statements inside a mako macro. Jin Seok has also used them in the RoeM implementation, however, they are not listed as allowed functionalities in the PyFR developer guide. Does anyone know if they work in all backends?

Thanks,
Niki

Hi Niki,

I think min/max work. I tested my RoeM for all backend and it works well.

For OpenMP, these are defined in pyfr.backends.openmp.kernels.base.mako.

From my understanding, min and max are built-in functions for CUDA and OpenCL.

Regards,

Jin Seok

Dr. Jin Seok Park PhD
Postdoctoral Researcher
Department of Aeronautics
Imperial College London
London, UK, SW7 2AZ

Thanks Jin Seok!

Niki