mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: use csorted() instead of sorted()
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2015-2022 OpenCFD Ltd.
|
||||
Copyright (C) 2015-2023 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -236,7 +236,7 @@ void Foam::functionObjects::forceCoeffs::writeIntegratedDataFileHeader
|
||||
writeHeader(os, "");
|
||||
writeCommented(os, "Time");
|
||||
|
||||
for (const auto& iter : coeffs_.sorted())
|
||||
for (const auto& iter : coeffs_.csorted())
|
||||
{
|
||||
const auto& coeff = iter.val();
|
||||
|
||||
@ -255,7 +255,7 @@ void Foam::functionObjects::forceCoeffs::writeIntegratedDataFile()
|
||||
|
||||
writeCurrentTime(os);
|
||||
|
||||
for (const auto& iter : coeffs_.sorted())
|
||||
for (const auto& iter : coeffs_.csorted())
|
||||
{
|
||||
const auto& coeff = iter.val();
|
||||
|
||||
@ -359,16 +359,16 @@ bool Foam::functionObjects::forceCoeffs::read(const dictionary& dict)
|
||||
|
||||
for (const word& key : coeffs)
|
||||
{
|
||||
auto coeffIter = coeffs_.find(key);
|
||||
auto iter = coeffs_.find(key);
|
||||
|
||||
if (!coeffIter.good())
|
||||
if (!iter.good())
|
||||
{
|
||||
FatalIOErrorInFunction(dict)
|
||||
<< "Unknown coefficient type " << key
|
||||
<< " . Valid entries are : " << coeffs_.sortedToc()
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
auto& coeff = coeffIter.val();
|
||||
auto& coeff = iter.val();
|
||||
coeff.active_ = true;
|
||||
Info<< " - " << coeff << nl;
|
||||
}
|
||||
@ -412,7 +412,7 @@ bool Foam::functionObjects::forceCoeffs::execute()
|
||||
};
|
||||
|
||||
// Always setting all results
|
||||
for (const auto& iter : coeffs_.sorted())
|
||||
for (const auto& iter : coeffs_.csorted())
|
||||
{
|
||||
const word& coeffName = iter.key();
|
||||
const auto& coeff = iter.val();
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2016-2022 OpenCFD Ltd.
|
||||
Copyright (C) 2016-2023 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -46,7 +46,7 @@ Foam::label Foam::functionObjects::ensightWrite::writeVolFieldsImpl
|
||||
for
|
||||
(
|
||||
const GeoField& origField
|
||||
: baseMesh.sorted<GeoField>(candidateNames)
|
||||
: baseMesh.csorted<GeoField>(candidateNames)
|
||||
)
|
||||
{
|
||||
const word& fieldName = origField.name();
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2018-2020 OpenCFD Ltd.
|
||||
Copyright (C) 2018-2023 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -43,7 +43,7 @@ Foam::label Foam::functionObjects::vtkWrite::writeVolFieldsImpl
|
||||
for
|
||||
(
|
||||
const GeoField& origField
|
||||
: baseMesh.sorted<GeoField>(candidateNames)
|
||||
: baseMesh.csorted<GeoField>(candidateNames)
|
||||
)
|
||||
{
|
||||
bool ok = false;
|
||||
@ -110,7 +110,7 @@ Foam::label Foam::functionObjects::vtkWrite::writeVolFieldsImpl
|
||||
for
|
||||
(
|
||||
const GeoField& origField
|
||||
: baseMesh.sorted<GeoField>(candidateNames)
|
||||
: baseMesh.csorted<GeoField>(candidateNames)
|
||||
)
|
||||
{
|
||||
bool ok = false;
|
||||
|
||||
Reference in New Issue
Block a user