diff --git a/applications/test/IndirectList/Test-IndirectList.C b/applications/test/IndirectList/Test-IndirectList.C index b06df501b5..bbe8b00f29 100644 --- a/applications/test/IndirectList/Test-IndirectList.C +++ b/applications/test/IndirectList/Test-IndirectList.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2010-2010, 2017 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2010-2010, 2017-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2011 OpenFOAM Foundation @@ -27,19 +27,21 @@ Description \*---------------------------------------------------------------------------*/ -#include "IndirectList.H" -#include "IOstreams.H" +#include "argList.H" #include "Fstream.H" #include "ListOps.H" +#include "IndirectList.H" #include "labelIndList.H" -#include "argList.H" +#include "SortList.H" +#include "Random.H" +#include using namespace Foam; template void printInfo(const ListType& lst) { - Info<< "full: " << flatOutput(lst.completeList()) << nl + Info<< "full: " << flatOutput(lst.values()) << nl << "addr: " << flatOutput(lst.addressing()) << nl << "list: " << flatOutput(lst) << nl << endl; @@ -103,7 +105,7 @@ int main(int argc, char *argv[]) inplaceReverseList(addresses); - idl1.resetAddressing(std::move(addresses)); + idl1.addressing() = std::move(addresses); printInfo(idl1); @@ -114,10 +116,10 @@ int main(int argc, char *argv[]) printInfo(uidl1); - idl1.resetAddressing(List