BUG: faceZoneSet: ordering of zone faces

This commit is contained in:
mattijs
2013-03-25 17:02:45 +00:00
parent 86ce9a510e
commit 59327e9170

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -49,8 +49,8 @@ void faceZoneSet::updateSet()
{ {
labelList order; labelList order;
sortedOrder(addressing_, order); sortedOrder(addressing_, order);
inplaceReorder(order, addressing_); addressing_ = UIndirectList<label>(addressing_, order)();
inplaceReorder(order, flipMap_); flipMap_ = UIndirectList<bool>(flipMap_, order)();
faceSet::clearStorage(); faceSet::clearStorage();
faceSet::resize(2*addressing_.size()); faceSet::resize(2*addressing_.size());