|
[Sponsors] | |||||
|
|
|
#21 | |
|
Senior Member
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 284
Blog Entries: 5
Rep Power: 22 ![]() |
@Daniel:
Quote:
If you need an empty object, do this: Code:
labelListList listlist; If you need a dynamic list of label lists, using the DynamicList template with default template arguments for container expansion, it looks like this: Code:
// Shorten the type name. Note the space between the last '> >' -
// unless you are using the C++11 standad.
typedef DynamicList<DynamicList<label> > dynamicLabelListList;
// Use your new type name alias and declare an empty list object.
dynamicLabelListList listList;
// append a label
listList.append(0);
Good luck, hope this helps.T
__________________
When asking a question, prepare a SSCCE. |
||
|
|
|
||
|
|
|
#22 |
|
New Member
Join Date: Oct 2013
Posts: 19
Rep Power: 14 ![]() |
Many Thanks
|
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with handling LES modeling with dynamic mesh | g.akbari | OpenFOAM Running, Solving & CFD | 0 | March 8, 2010 17:18 |
| Error%7eerror triggers crash after handling exceptions thrown by errorexit twice | 7islands | OpenFOAM Bugs | 2 | September 4, 2007 06:24 |
| Handling axisymmetry terms on the symmetry line | Sonny | Main CFD Forum | 4 | December 9, 2005 17:22 |
| macros handling vectors | sivakumar | FLUENT | 0 | January 18, 2002 17:16 |