Skip to content

Commit e3dac8a

Browse files
committed
Use an ordered map sorted by ID for coupled elements
1 parent 4e96d4e commit e3dac8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/base/ghosting_functor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "libmesh/id_types.h"
2626
#include "libmesh/mesh_base.h"
2727
#include "libmesh/reference_counted_object.h"
28+
#include "libmesh/dof_object.h"
2829

2930
// C++ Includes
3031
#include <unordered_map>
@@ -228,7 +229,7 @@ class GhostingFunctor : public ReferenceCountedObject<GhostingFunctor>
228229
* What elements do we care about and what variables do we care
229230
* about on each element?
230231
*/
231-
typedef std::unordered_map<const Elem*, const CouplingMatrix*> map_type;
232+
typedef std::map<const Elem*, const CouplingMatrix*, CompareDofObjectsByID> map_type;
232233

233234
/**
234235
* For the specified range of active elements, what other elements

0 commit comments

Comments
 (0)