From a7e8a43f4a4b3b76a44c6961f3d57ce79174f00a Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Wed, 9 Apr 2025 14:23:49 +0200 Subject: [PATCH] ENH: add writeContents() static methods for IOList etc. - encapsulates IOListRef etc into a simpler syntax ENH: use UList instead of refPtr for IOListRef (avoids List cast etc) --- applications/test/IOField/Test-IOField.cxx | 4 +-- .../manipulation/checkMesh/checkTopology.C | 16 +++------- .../manipulation/renumberMesh/renumberMesh.C | 8 ++--- .../decomposePar/domainDecomposition.C | 17 +++++------ .../reconstructParMesh/reconstructParMesh.C | 8 ++--- .../redistributePar/redistributePar.C | 29 +++++++------------ src/OpenFOAM/db/IOobjects/IOList/IOList.C | 23 +++++++++++++-- src/OpenFOAM/db/IOobjects/IOList/IOList.H | 17 ++++++----- .../mapDistribute/IOmapDistributePolyMesh.C | 19 +++++++++++- .../mapDistribute/IOmapDistributePolyMesh.H | 13 ++++++++- src/conversion/ccm/reader/ccmReader.H | 2 +- src/conversion/ccm/reader/ccmReaderAux.C | 2 +- src/conversion/common/reader/meshReader.H | 2 +- src/conversion/common/reader/meshReaderAux.C | 2 +- .../polyTopoChange/hexRef8/hexRef8Data.C | 4 +-- .../polyTopoChange/hexRef8/hexRef8Data.H | 4 +-- .../faDecompose/faMeshDecomposition.C | 10 +++---- .../faReconstruct/faMeshReconstructor.C | 12 ++++---- 18 files changed, 110 insertions(+), 82 deletions(-) diff --git a/applications/test/IOField/Test-IOField.cxx b/applications/test/IOField/Test-IOField.cxx index 96f91d5e7e..e9f6123e40 100644 --- a/applications/test/IOField/Test-IOField.cxx +++ b/applications/test/IOField/Test-IOField.cxx @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2017 OpenFOAM Foundation - Copyright (C) 2019-2022 OpenCFD Ltd. + Copyright (C) 2019-2025 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -269,7 +269,7 @@ int main(int argc, char *argv[]) ioOutput.rename(args.executable() + "-labels"); Info<< "write " << ioOutput.objectRelPath() << endl; { - IOListRef