Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MetisGraph.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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/* MetisGraph.h (C) 2000-2024 */
9/* */
10/* Gestion d'un graphe de Metis. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_METISGRAPH
13#define ARCANE_STD_METISGRAPH
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Array.h"
18#include "arcane/utils/ArrayView.h"
19#include <parmetis.h>
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
30{
31 int nb_vertices = 0;
32 bool have_vsize = false;
33 bool have_adjwgt = false;
35 UniqueArray<idx_t> adjncy;
38 UniqueArray<idx_t> adjwgt;
40};
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
46{
47 public:
48 MetisGraphView() = default;
49
51 : nb_vertices(graph.nb_vertices)
52 , have_vsize(graph.have_vsize)
53 , have_adjwgt(graph.have_adjwgt)
54 , xadj(graph.xadj)
55 , adjncy(graph.adjncy)
56 , vwgt(graph.vwgt)
57 , vsize(graph.vsize)
58 , adjwgt(graph.adjwgt)
59 , part(graph.part)
60 {}
61 public:
62 int nb_vertices = 0;
63 bool have_vsize = false;
64 bool have_adjwgt = false;
66 ArrayView<idx_t> adjncy;
68 ArrayView<idx_t> vsize;
69 ArrayView<idx_t> adjwgt;
71};
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76} // End namespace Arcane
77
78/*---------------------------------------------------------------------------*/
79/*---------------------------------------------------------------------------*/
80
81#endif
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-