From d01a47aeee5cae6e1561198ad6f6daf38c2f6013 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 4 Oct 2010 14:53:43 +0200 Subject: [PATCH 01/61] ENH: replace IndirectList with version that inherits from UIndirectList --- .../test/IndirectList/IndirectListTest.C | 43 ++-- .../test/IndirectList2/IndirectList2.H | 164 ---------------- .../test/IndirectList2/IndirectList2I.H | 136 ------------- .../test/IndirectList2/IndirectListTest2.C | 101 ---------- applications/test/IndirectList2/Make/files | 3 - applications/test/IndirectList2/Make/options | 2 - .../Lists/IndirectList/IndirectList.H | 120 +++++++----- .../Lists/IndirectList/IndirectListI.H | 185 +++++++----------- 8 files changed, 174 insertions(+), 580 deletions(-) delete mode 100644 applications/test/IndirectList2/IndirectList2.H delete mode 100644 applications/test/IndirectList2/IndirectList2I.H delete mode 100644 applications/test/IndirectList2/IndirectListTest2.C delete mode 100644 applications/test/IndirectList2/Make/files delete mode 100644 applications/test/IndirectList2/Make/options diff --git a/applications/test/IndirectList/IndirectListTest.C b/applications/test/IndirectList/IndirectListTest.C index 44589f57c0..5fe724cc1b 100644 --- a/applications/test/IndirectList/IndirectListTest.C +++ b/applications/test/IndirectList/IndirectListTest.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -30,6 +30,15 @@ Description using namespace Foam; +template +void printInfo(const ListType& lst) +{ + Info<< "addr: " << lst.addressing() << nl + << "list: " << lst << nl + << endl; +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Main program: @@ -42,8 +51,7 @@ int main(int argc, char *argv[]) completeList[i] = 0.1*i; } - Info<< "raw : " << completeList << nl - << endl; + Info<< "raw : " << completeList << nl << endl; List