mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: fixup test applications
This commit is contained in:
@ -67,11 +67,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
for (int i = 0; i<10; i++)
|
||||
{
|
||||
myList.append(1.3*i);
|
||||
myList.push_back(1.3*i);
|
||||
}
|
||||
|
||||
myList.append(100.3);
|
||||
myList.append(500.3);
|
||||
myList.push_back(100.3);
|
||||
myList.push_back(500.3);
|
||||
|
||||
Info<< "DLList<scalar>" << nl;
|
||||
Info<< nl << "flat-output: " << flatOutput(myList) << nl;
|
||||
@ -144,9 +144,9 @@ int main(int argc, char *argv[])
|
||||
Info<< " => " << flatOutput(myList) << nl;
|
||||
}
|
||||
|
||||
myList.append(500.3);
|
||||
myList.append(200.3);
|
||||
myList.append(100.3);
|
||||
myList.push_back(500.3);
|
||||
myList.push_back(200.3);
|
||||
myList.push_back(100.3);
|
||||
|
||||
Info<< nl << "Testing swapUp and swapDown:" << nl;
|
||||
Info<< " => " << flatOutput(myList) << nl;
|
||||
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
for (int i = 0; i<5; i++)
|
||||
{
|
||||
labList.append(identity(6));
|
||||
labList.push_back(identity(6));
|
||||
}
|
||||
|
||||
Info<< nl
|
||||
@ -221,16 +221,16 @@ int main(int argc, char *argv[])
|
||||
List<label> content1 = identity(10);
|
||||
|
||||
Info<< nl
|
||||
<< " move append ";
|
||||
<< " move push_back ";
|
||||
printAddress(content1);
|
||||
|
||||
labList.append(std::move(content1));
|
||||
labList.push_back(std::move(content1));
|
||||
|
||||
Info<< " content " << flatOutput(content1) << nl
|
||||
<< " list" << labList << nl;
|
||||
|
||||
printAddresses(labList);
|
||||
// labList.append(content1);
|
||||
// labList.push_back(content1);
|
||||
}
|
||||
|
||||
Info<< nl << "Done." << endl;
|
||||
|
||||
Reference in New Issue
Block a user