mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Added Container template argument for e.g. construct from faceList
This commit is contained in:
@ -34,6 +34,7 @@ Description
|
||||
#include "IOstreams.H"
|
||||
#include "OStringStream.H"
|
||||
#include "IStringStream.H"
|
||||
#include "faceList.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
@ -139,6 +140,18 @@ int main(int argc, char *argv[])
|
||||
Info<< "cll5 = " << cll5 << endl;
|
||||
}
|
||||
|
||||
{
|
||||
faceList fcs(2);
|
||||
fcs[0] = face(labelList(1, 111));
|
||||
fcs[1] = face(labelList(2, 222));
|
||||
|
||||
CompactListList<label, face> compactFcs(fcs);
|
||||
Info<< "comactFcs:" << compactFcs << endl;
|
||||
|
||||
faceList fcs2 = compactFcs();
|
||||
Info<< "fcs2:" << fcs2 << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user