float/double type in triangleSet.h

The Palabos I’m using is 1.4r1.

When using the TriangleSet::refine() funcion with T=float. The compiler says that:

src/offLattice/triangleSet.hh:537:  no match for 'operator*' in 5.0e-1 ....

While using T=double is ok.

I found changing the “0.5” in line 537,538,539 of triangleSet.hh to “T(0.5)” would resolve that error!


Thanks a lot. It is corrected now in the Palabos library. With the next release this bug will be fixed.