Arcane  v3.16.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
NodesOfItemReorderer.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* NodesOfItemReorderer.cc (C) 2000-2025 */
9/* */
10/* Classe utilitaire pour réordonner les noeuds d'une entité. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/core/NodesOfItemReorderer.h"
15
16#include "arcane/core/ItemTypeId.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28bool NodesOfItemReorderer::
29reorder([[maybe_unused]] ItemTypeId type_id, ConstArrayView<Int64> nodes_uids)
30{
31 Int32 nb_node = nodes_uids.size();
32 m_work_sorted_nodes.resize(nb_node);
33 return MeshUtils::reorderNodesOfFace(nodes_uids, m_work_sorted_nodes);
34}
35
36/*---------------------------------------------------------------------------*/
37/*---------------------------------------------------------------------------*/
38
39} // End namespace Arcane
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
Fonctions utilitaires sur le maillage.
Vue constante d'un tableau de type T.
Type d'une entité (Item).
Definition ItemTypeId.h:32
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int32_t Int32
Type entier signé sur 32 bits.