From a7030ee97e1af924c66a33c5f0bb98da8e33d99a Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Fri, 4 Feb 2022 12:16:18 +0000 Subject: [PATCH] CompactListList: Removed unnecessary templating and create unallocated base --- .../CompactListList/Test-CompactListList.C | 8 +- .../Lists/CompactListList/CompactListList.C | 167 ++++-------- .../Lists/CompactListList/CompactListList.H | 130 ++------- .../Lists/CompactListList/CompactListListI.H | 247 +++++------------- .../Lists/CompactListList/CompactListListIO.C | 39 ++- .../Lists/UCompactListList/UCompactListList.C | 65 +++++ .../Lists/UCompactListList/UCompactListList.H | 179 +++++++++++++ .../UCompactListList/UCompactListListI.H | 221 ++++++++++++++++ .../UCompactListList/UCompactListListIO.C | 44 ++++ .../fvMeshDistribute/fvMeshDistribute.C | 6 +- .../polyTopoChange/polyTopoChange.H | 8 +- .../ORourkeCollision/ORourkeCollision.C | 4 +- .../decompositionMethod/decompositionMethod.C | 16 +- .../multiLevelDecomp/multiLevelDecomp.C | 4 +- .../CuthillMcKeeRenumber.C | 4 +- .../renumberMethod/renumberMethod.C | 6 +- .../springRenumber/springRenumber.C | 4 +- 17 files changed, 690 insertions(+), 462 deletions(-) create mode 100644 src/OpenFOAM/containers/Lists/UCompactListList/UCompactListList.C create mode 100644 src/OpenFOAM/containers/Lists/UCompactListList/UCompactListList.H create mode 100644 src/OpenFOAM/containers/Lists/UCompactListList/UCompactListListI.H create mode 100644 src/OpenFOAM/containers/Lists/UCompactListList/UCompactListListIO.C diff --git a/applications/test/CompactListList/Test-CompactListList.C b/applications/test/CompactListList/Test-CompactListList.C index 9912758235..a2e19e6300 100644 --- a/applications/test/CompactListList/Test-CompactListList.C +++ b/applications/test/CompactListList/Test-CompactListList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -88,7 +88,7 @@ int main(int argc, char *argv[]) cll2(2, 3) = 999; Info<< "cll2(2, 3) = " << cll2(2, 3) << nl << endl; - Info<< "cll2 as List> " << cll2() + Info<< "cll2 as List> " << cll2.list() << endl; cll2.setSize(3); @@ -144,10 +144,10 @@ int main(int argc, char *argv[]) fcs[0] = face(labelList(1, 111)); fcs[1] = face(labelList(2, 222)); - CompactListList compactFcs(fcs); + CompactListList