Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arcane/src/arcane/core/IMeshUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class ARCANE_CORE_EXPORT IMeshUtilities
*
* Cette opération est collective.
*/
ARCANE_DEPRECATED_REASON("Y2025: Use MeshUtils::computeAndSetOwnerForNodes() instead")
virtual void computeAndSetOwnersForNodes() =0;

/*!
Expand All @@ -172,6 +173,7 @@ class ARCANE_CORE_EXPORT IMeshUtilities
*
* Cette opération est collective.
*/
ARCANE_DEPRECATED_REASON("Y2025: Use MeshUtils::computeAndSetOwnerForEdges() instead")
virtual void computeAndSetOwnersForEdges() = 0;

/*!
Expand All @@ -182,6 +184,7 @@ class ARCANE_CORE_EXPORT IMeshUtilities
*
* Cette opération est collective.
*/
ARCANE_DEPRECATED_REASON("Y2025: Use MeshUtils::computeAndSetOwnerForFaces() instead")
virtual void computeAndSetOwnersForFaces() =0;

/*!
Expand Down
31 changes: 31 additions & 0 deletions arcane/src/arcane/core/MeshUtils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "arcane/core/ITiedInterface.h"
#include "arcane/core/SharedVariable.h"
#include "arcane/core/MeshVisitor.h"
#include "arcane/core/IMeshUtilities.h"
#include "arcane/core/IVariableSynchronizer.h"
#include "arcane/core/UnstructuredMeshConnectivity.h"
#include "arcane/core/datatype/DataAllocationInfo.h"
Expand Down Expand Up @@ -1952,6 +1953,36 @@ generateHashUniqueId(SmallSpan<const Int64> nodes_unique_id)
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

void MeshUtils::
computeAndSetOwnerForNodes(IMesh* mesh)
{
ARCANE_CHECK_POINTER(mesh);
mesh->utilities()->computeAndSetOwnersForNodes();
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

void MeshUtils::
computeAndSetOwnerForEdges(IMesh* mesh)
{
ARCANE_CHECK_POINTER(mesh);
mesh->utilities()->computeAndSetOwnersForEdges();
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

void MeshUtils::
computeAndSetOwnerForFaces(IMesh* mesh)
{
ARCANE_CHECK_POINTER(mesh);
mesh->utilities()->computeAndSetOwnersForFaces();
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

} // End namespace Arcane

/*---------------------------------------------------------------------------*/
Expand Down
39 changes: 39 additions & 0 deletions arcane/src/arcane/core/MeshUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,45 @@ computeNodeNodeViaEdgeConnectivity(IMesh* mesh, const String& connectivity_name)
extern "C++" ARCANE_CORE_EXPORT Ref<IIndexedIncrementalItemConnectivity>
computeBoundaryNodeNodeViaEdgeConnectivity(IMesh* mesh, const String& connectivity_name);

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* \brief Détermine les propriétaires des noeuds.
*
* La détermination se fait en fonction des propriétaires des mailles.
* Il ne doit pas y avoir de couches de mailles fantômes.
*
* Cette opération est collective.
*/
extern "C++" ARCANE_CORE_EXPORT void
computeAndSetOwnerForNodes(IMesh* mesh);

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* \brief Détermine les propriétaires des arêtes.
*
* La détermination se fait en fonction des propriétaires des mailles.
* Il ne doit pas y avoir de couches de mailles fantômes.
*
* Cette opération est collective.
*/
extern "C++" ARCANE_CORE_EXPORT void
computeAndSetOwnerForEdges(IMesh* mesh);

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*!
* \brief Détermine les propriétaires des faces.
*
* La détermination se fait en fonction des propriétaires des mailles.
* Il ne doit pas y avoir de couches de mailles fantômes.
*
* Cette opération est collective.
*/
extern "C++" ARCANE_CORE_EXPORT void
computeAndSetOwnerForFaces(IMesh* mesh);

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

Expand Down
6 changes: 3 additions & 3 deletions arcane/src/arcane/tests/MeshUnitTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1806,9 +1806,9 @@ _testComputeOwnersDirect()
info() << "Test: _testComputeOwnersDirect()";
mesh()->modifier()->setDynamic(true);
mesh()->modifier()->updateGhostLayers();
mesh()->utilities()->computeAndSetOwnersForNodes();
mesh()->utilities()->computeAndSetOwnersForEdges();
mesh()->utilities()->computeAndSetOwnersForFaces();
MeshUtils::computeAndSetOwnerForNodes(mesh());
MeshUtils::computeAndSetOwnerForEdges(mesh());
MeshUtils::computeAndSetOwnerForFaces(mesh());
}

/*---------------------------------------------------------------------------*/
Expand Down
Loading