Commit bb5bc164 authored by Mark Olesen's avatar Mark Olesen
Browse files

minor changes to test/DynamicListTest.C

parent d2a2f27b
......@@ -43,20 +43,31 @@ int main(int argc, char *argv[])
ldl[0](3) = 3;
ldl[0](1) = 1;
ldl[1](0) = 1;
ldl[1](1) = 2;
ldl[0].setSize(5); // increase allocated size
ldl[1].setSize(10); // increase allocated size
ldl[1](2) = 2;
ldl[1] = 3;
Info<< ldl[1];
Info<< "<ldl>" << ldl << "</ldl>" << nl << "sizes: ";
forAll(ldl, i)
{
Info<< " " << ldl[i].size() << "/" << ldl[i].allocSize();
}
Info<< endl;
List<List<label> > ll(2);
ll[0].transfer(ldl[0].shrink());
ll[0].transfer(ldl[0]);
ll[1].transfer(ldl[1].shrink());
Info<< ll << endl;
Info<< "<ldl>" << ldl << "</ldl>" << nl << "sizes: ";
forAll(ldl, i)
{
Info<< " " << ldl[i].size() << "/" << ldl[i].allocSize();
}
Info<< endl;
Info << "\nEnd\n" << endl;
Info<< "<ll>" << ll << "</ll>" << nl << endl;
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment