Skip to content

Commit

Permalink
[arcane,mesh] Prend en compte la nouvelle option CMake pour le choix …
Browse files Browse the repository at this point in the history
…de l'implémentation de 'ItemInternalMap'.
  • Loading branch information
grospelliergilles committed Oct 9, 2024
1 parent a9ced60 commit 3122e5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 4 additions & 3 deletions arcane/src/arcane/mesh/DynamicMesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ DynamicMesh(ISubDomain* sub_domain,const MeshBuildInfo& mbi, bool is_submesh)
m_item_internal_list._internalSetFaceSharedInfo(m_face_family->commonItemSharedInfo());
m_item_internal_list._internalSetCellSharedInfo(m_cell_family->commonItemSharedInfo());

info() << "Is AMR Activated? = " << m_is_amr_activated;
info() << "AMR type = " << m_amr_type;
info() << "Is AMR Activated? = " << m_is_amr_activated
<< "AMR type = " << m_amr_type;

_printConnectivityPolicy();

Expand Down Expand Up @@ -374,7 +374,8 @@ build()
{
Trace::Setter mci(traceMng(),_className());

info() << "Building DynamicMesh=" << this << " name=" << name();
info() << "Building DynamicMesh name=" << name()
<< " ItemInternalMapImpl=" << ItemInternalMap::UseNewImpl;

m_tied_interface_mng = new TiedInterfaceMng(this);

Expand Down
7 changes: 3 additions & 4 deletions arcane/src/arcane/mesh/ItemInternalMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

#include "arcane/mesh/MeshGlobal.h"
#include "arcane/core/ItemInternal.h"

#include <unordered_map>
#include "arcane/utils/HashTableMap2.h"

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
Expand Down Expand Up @@ -61,12 +60,12 @@ class ItemInternalMap
private:

using LegacyImpl = HashTableMapT<Int64, ItemInternal*>;
using NewImpl = std::unordered_map<Int64, ItemInternal*>;
using NewImpl = impl::HashTableMap2<Int64, ItemInternal*>;
using BaseData = LegacyImpl::Data;

public:

#ifdef ARCANE_USE_NEW_IMPL_FOR_ITEMINTERNALMAP
#ifdef ARCANE_USE_HASHTABLEMAP2_FOR_ITEMINTERNALMAP
static constexpr bool UseNewImpl = 1;
#else
static constexpr bool UseNewImpl = 0;
Expand Down

0 comments on commit 3122e5c

Please sign in to comment.