diff --git a/README.md b/README.md index 8197b85d56..3aa2503b54 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ OpenFOAM is free software: you can redistribute it and/or modify it under the te # OpenFOAM Trademark -OpenCFD Ltd grants use of the OpenFOAM trademark by Third Parties on a licence basis. ESI Group and the OpenFOAM Foundation Ltd are currently permitted to use the trademark. For information on trademark use, please refer to the [trademark policy guidelines](http://www.openfoam.com/legal/trademark-policy.php). +OpenCFD Ltd grants use of the OpenFOAM trademark by Third Parties on a licence basis. ESI Group and the OpenFOAM Foundation Ltd are currently permitted to use the Name and agreed Domain Name. For information on trademark use, please refer to the [trademark policy guidelines](http://www.openfoam.com/legal/trademark-policy.php). Please [contact OpenCFD](http://www.openfoam.com/contact) if you have any questions on the use of the OpenFOAM trademark. diff --git a/applications/test/HashSet/Test-hashSet.C b/applications/test/HashSet/Test-hashSet.C index bc219e9b96..dcfa0aec7a 100644 --- a/applications/test/HashSet/Test-hashSet.C +++ b/applications/test/HashSet/Test-hashSet.C @@ -42,7 +42,7 @@ int main(int argc, char *argv[]) "def", "ghi" }; - words = { "def", "ghi", "xy", "all", "begin", "all" }; + words = { "def", "ghi", "xy", "all", "end", "all" }; wordHashSet setA { @@ -84,6 +84,26 @@ int main(int argc, char *argv[]) Info<< "hashedWordList: " << words << nl << "with lookup: " << words.lookup() << endl; + { + List input = { "def", "ghi", "xy", "all", "end", "all", "def" }; + hashedWordList words1(input, true); + + Info<< "input word list: " << input << nl + << "without dup: " << words1 << endl; + + Info<< "from wordHashSet: " << hashedWordList(setA) << endl; + Info<< "from HashTable: " << hashedWordList(tableA) << endl; + Info<< "from HashTable: " << hashedWordList(tableB) << endl; + + // even this works + Info<< "from hashSet: " + << hashedWordList + ( + wordHashSet(setA) + | wordHashSet(tableA) | wordHashSet(tableB) + ) << endl; + } + Info<< "wordHashSet: " << setA << endl; Info<< "Table-HashSet: " << tableA << endl; Info<< "Map