Skip to content
Snippets Groups Projects
Commit fbb9f22d authored by Henry Weller's avatar Henry Weller
Browse files

Test-PackedList1: Removed chained assigments

parent 968c888f
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -72,11 +72,15 @@ int main(int argc, char *argv[]) ...@@ -72,11 +72,15 @@ int main(int argc, char *argv[])
list1.printInfo(Info, true); list1.printInfo(Info, true);
Info<< "\ntest assign between references, with chaining\n"; Info<< "\ntest assign between references, with chaining\n";
list1[0] = list1[4] = 1; list1[0] = 1;
list1[4] = 1;
list1.printInfo(Info, true); list1.printInfo(Info, true);
Info<< "\ntest assign between references, with chaining and auto-vivify\n"; Info<< "\ntest assign between references, with chaining and auto-vivify\n";
list1[1] = list1[8] = list1[10] = list1[14] = 2; list1[1] = 2;
list1[8] = 2;
list1[10] = 2;
list1[14] = 2;
list1.printInfo(Info, true); list1.printInfo(Info, true);
......
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