When trying to compile swak4foam from the develop branch for OpenFOAM-5,6,dev get the following compilation error for unitCylinderSearchableSurface.C:
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-10$ Objects/unitCylinderSearchableSurface.C: In member function ‘void Foam::unitCylinderSearchableSurface::findLineAll(const point&, const point&, Foam::List<Foam::PointIndexHit<Foam::Vector<double> > >&) const’: Objects/unitCylinderSearchableSurface.C:129:27: error: ‘HUGE’ was not declared in this scope mag(topIntersect)>HUGE ^~~~ Objects/unitCylinderSearchableSurface.C:141:30: error: ‘HUGE’ was not declared in this scope mag(bottomIntersect)>HUGE ^~~~ /opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/Objects/unitCylinderSearchableSurface.o' failed make: *** [Make/linux64GccDPInt32Opt/Objects/unitCylinderSearchableSurface.o] Error 1
The attached patch makes unitCylinderSearchableSurface compile for all the mentioned OpenFOAM versions.
This commit addresses this. So this issue can be closed. Thanks a lot!