|
[Sponsors] |
April 15, 2014, 08:03 |
HashTable use
|
#1 |
New Member
Nathanaël Geng
Join Date: May 2012
Posts: 18
Rep Power: 13 |
Hello,
I try to use HashTable for storing data like in a map and I don't understand the behavior: Code:
// Create the HashTable HashTable<StoredClass, SortableList<label>, Hash<SortableList<label> > > myMap; // Add item to it const face& facePt = topo.faces()[fI]; myMap.insert(SortableList<label>(facePt.pointsLabel()), StoredClassItem); // Get item back StoredClass& face = myMap[SortableList<label>(blockFaces[blockFaceLabel])]; Code:
--> FOAM FATAL ERROR: 4(0 1 2 3) not found in table. Valid entries: 24 ( 4(2 4 18 21) 4(20 21 22 23) 4(5 7 9 11) 4(14 15 16 17) 4(0 1 2 3) <=== Data exist 4(12 14 24 25) ... I think I miss something with the usage of HashTable. Thanks in advance for the help. Nathanaël. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run time Selection Mechanism - Some help required to understand | jaswi | OpenFOAM Programming & Development | 3 | October 29, 2015 14:42 |
dynamic list (variable size) | alquimista | OpenFOAM Programming & Development | 5 | July 19, 2013 14:29 |
multidimensional hashtable? | Farshad_Noravesh | OpenFOAM | 0 | January 24, 2011 10:05 |
HashTable Binary write format | deepsterblue | OpenFOAM Bugs | 1 | March 16, 2010 11:03 |
Ordered HashTable | olesen | OpenFOAM | 1 | January 4, 2007 05:17 |