How can I make my algorithm for finding duplicates more OpenFOAMic
Dear All,
I've coded the following algorithm to find duplicate entries in a List or Field of vectors. I first concatenate the coordinates into a string, compute the hash of this string and then request the uniqueOrder of the container of hashes. However I can't do this without std::string, std::to_string and std::hash. Any tips on how to do this using builtin OpenFOAM structures and functions? Thanks in advance, Victor Code:
List<label> pointBasedStencil::findUniquePoints(const Field<vector>& src) |
All times are GMT -4. The time now is 23:11. |