diff --git a/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C b/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C index 9d5c334970..efe0e075a8 100644 --- a/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C +++ b/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2019 OpenCFD Ltd. + Copyright (C) 2019-2023 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -47,7 +47,7 @@ Description #include "Time.H" #include "polyMesh.H" #include "cellSet.H" -#include "SortableList.H" +#include "SortList.H" #include "labelIOList.H" #include "fvMesh.H" #include "volFields.H" @@ -128,71 +128,54 @@ int main(int argc, char *argv[]) const scalarField& vols = mesh.cellVolumes(); - SortableList sortedVols(vols); + SortList sortedVols(vols); // All cell labels, sorted per bin. DynamicList> bins; // Lower/upper limits - DynamicList lowerLimits; - DynamicList upperLimits; + DynamicList limits; // Create bin0. Have upperlimit as factor times lowerlimit. - bins.append(DynamicList