From 7b86d6b513c81009a78070796bf87c794ad791b5 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 3 Nov 2011 17:04:11 +0000 Subject: [PATCH] BUG: Fix uniqueOrder() to not drop largest item Fixes http://www.openfoam.com/mantisbt/view.php?id=330 --- src/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C b/src/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C index 1f308edf..41e28c3f 100644 --- a/src/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C +++ b/src/OpenFOAM/containers/Lists/ListOps/ListOpsTemplates.C @@ -243,6 +243,7 @@ void Foam::uniqueOrder order[n++] = order[i]; } } + order[n++] = order[order.size()-1]; order.setSize(n); } } -- 2.11.4.GIT