12#ifndef ARCANE_CORE_INTERNAL_CARTESIANMESHGENERATIONINFO_H
13#define ARCANE_CORE_INTERNAL_CARTESIANMESHGENERATIONINFO_H
17#include "arcane/utils/ArrayView.h"
18#include "arcane/utils/Real3.h"
20#include "arcane/core/ICartesianMeshGenerationInfo.h"
35class ARCANE_CORE_EXPORT CartesianMeshGenerationInfo
38 static constexpr Int32 NB_DIM = 3;
46 Int64 globalNbCell()
const override {
return m_global_nb_cell; }
52 Int64 firstOwnCellUniqueId()
const override {
return m_first_own_cell_unique_id; }
53 Real3 globalOrigin()
const override {
return m_global_origin; };
54 Real3 globalLength()
const override {
return m_global_length; };
63 void setFirstOwnCellUniqueId(
Int64 uid)
override;
64 void setGlobalOrigin(
Real3 pos)
override;
65 void setGlobalLength(
Real3 length)
override;
70 Int32 m_mesh_dimension = -1;
71 Int64 m_global_nb_cell = 0;
79 Int64 m_global_nb_cell_ptr[NB_DIM];
80 Int32 m_sub_domain_offset_ptr[NB_DIM];
81 Int32 m_nb_sub_domain_ptr[NB_DIM];
82 Int32 m_own_nb_cell_ptr[NB_DIM];
83 Int64 m_own_cell_offset_ptr[NB_DIM];
84 Real3 m_global_origin;
85 Real3 m_global_length;
87 Int64 m_first_own_cell_unique_id = -1;
Brief: Cartesian mesh generation information.
Class managing a 3-dimensional real vector.
ArrayView< Int64 > Int64ArrayView
C equivalent of a 1D array of 64-bit integers.
std::int64_t Int64
Signed integer type of 64 bits.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
ArrayView< Int32 > Int32ArrayView
C equivalent of a 1D array of 32-bit integers.
std::int32_t Int32
Signed integer type of 32 bits.