diff --git a/applications/test/DynamicList/DynamicListTest.C b/applications/test/DynamicList/DynamicListTest.C index f08f2d54a7..2d4efa5e1f 100644 --- a/applications/test/DynamicList/DynamicListTest.C +++ b/applications/test/DynamicList/DynamicListTest.C @@ -43,11 +43,11 @@ int main(int argc, char *argv[]) ldl[0](3) = 3; ldl[0](1) = 1; - ldl[0].allocSize(5); // increase allocated size - ldl[1].allocSize(10); // increase allocated size - ldl[0].reserve(15); // should increase allocated size - ldl[1].reserve(5); // should not decrease allocated size - ldl[1](3) = 2; // allocates space and sets value + ldl[0].setCapacity(5); // increase allocated size + ldl[1].setCapacity(10); // increase allocated size + ldl[0].reserve(15); // should increase allocated size + ldl[1].reserve(5); // should not decrease allocated size + ldl[1](3) = 2; // allocates space and sets value // this works without a segfault, but doesn't change the list size ldl[0][4] = 4; @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) Info<< "" << ldl << "" << nl << "sizes: "; forAll(ldl, i) { - Info<< " " << ldl[i].size() << "/" << ldl[i].allocSize(); + Info<< " " << ldl[i].size() << "/" << ldl[i].capacity(); } Info<< endl; @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) Info<< "" << ldl << "" << nl << "sizes: "; forAll(ldl, i) { - Info<< " " << ldl[i].size() << "/" << ldl[i].allocSize(); + Info<< " " << ldl[i].size() << "/" << ldl[i].capacity(); } Info<< endl; @@ -83,10 +83,10 @@ int main(int argc, char *argv[]) { dlA.append(i); } - dlA.allocSize(10); + dlA.setCapacity(10); Info<< "" << dlA << "" << nl << "sizes: " - << " " << dlA.size() << "/" << dlA.allocSize() << endl; + << " " << dlA.size() << "/" << dlA.capacity() << endl; dlB.transfer(dlA); @@ -96,9 +96,9 @@ int main(int argc, char *argv[]) Info<< "Transferred to dlB" << endl; Info<< "" << dlA << "" << nl << "sizes: " - << " " << dlA.size() << "/" << dlA.allocSize() << endl; + << " " << dlA.size() << "/" << dlA.capacity() << endl; Info<< "" << dlB << "" << nl << "sizes: " - << " " << dlB.size() << "/" << dlB.allocSize() << endl; + << " " << dlB.size() << "/" << dlB.capacity() << endl; // try with a normal list: List