Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::CartesianMeshAllocateBuildInfo Class Reference

Information for allocating entities of an unstructured mesh. More...

#include <arcane/core/CartesianMeshAllocateBuildInfo.h>

Collaboration diagram for Arcane::CartesianMeshAllocateBuildInfo:

Classes

class  Impl

Public Member Functions

 CartesianMeshAllocateBuildInfo (IPrimaryMesh *mesh)
 CartesianMeshAllocateBuildInfo (CartesianMeshAllocateBuildInfo &&from)=delete
 CartesianMeshAllocateBuildInfo (const CartesianMeshAllocateBuildInfo &from)=delete
CartesianMeshAllocateBuildInfo & operator= (CartesianMeshAllocateBuildInfo &&from)=delete
CartesianMeshAllocateBuildInfo & operator= (const CartesianMeshAllocateBuildInfo &from)=delete
void setInfos3D (std::array< Int64, 3 > global_nb_cells, std::array< Int32, 3 > own_nb_cells, Int64 cell_unique_id_offset, Int64 node_unique_id_offset)
 Sets the information for a 3D mesh.
void setInfos3D (const Int64x3 &global_nb_cells, const Int32x3 &own_nb_cells, const Int64x3 &first_own_cell_offset, Int64 cell_unique_id_offset)
 Sets the information for a 3D mesh.
void setInfos2D (std::array< Int64, 2 > global_nb_cells, std::array< Int32, 2 > own_nb_cells, Int64 cell_unique_id_offset, Int64 node_unique_id_offset)
 Sets the information for a 2D mesh.
void setInfos2D (const Int64x2 &global_nb_cells, const Int32x2 &own_nb_cells, const Int64x2 &first_own_cell_offset, Int64 cell_unique_id_offset)
 Sets the information for a 2D mesh.
void allocateMesh ()
 Allocates the mesh.
CartesianMeshAllocateBuildInfoInternal_internal ()
 Internal part reserved for Arcane.

Private Attributes

Implm_p = nullptr

Detailed Description

Information for allocating entities of an unstructured mesh.

This class allows specifying the cells that will be added during the initial mesh allocation. You must call setMeshDimension() to specify the mesh dimension then call addCell() for each cell you wish to add. Once all cells have been added, you must call allocateMesh().

Definition at line 38 of file CartesianMeshAllocateBuildInfo.h.

Constructor & Destructor Documentation

◆ CartesianMeshAllocateBuildInfo()

Arcane::CartesianMeshAllocateBuildInfo::CartesianMeshAllocateBuildInfo ( IPrimaryMesh * mesh)
explicit

Definition at line 162 of file CartesianMeshAllocateBuildInfo.cc.

◆ ~CartesianMeshAllocateBuildInfo()

Arcane::CartesianMeshAllocateBuildInfo::~CartesianMeshAllocateBuildInfo ( )

Definition at line 171 of file CartesianMeshAllocateBuildInfo.cc.

Member Function Documentation

◆ _internal()

CartesianMeshAllocateBuildInfoInternal * Arcane::CartesianMeshAllocateBuildInfo::_internal ( )

Internal part reserved for Arcane.

Definition at line 260 of file CartesianMeshAllocateBuildInfo.cc.

◆ allocateMesh()

void Arcane::CartesianMeshAllocateBuildInfo::allocateMesh ( )

Allocates the mesh.

It is necessary to have called setInfos() beforehand.

This method is collective.

Definition at line 240 of file CartesianMeshAllocateBuildInfo.cc.

References ARCANE_FATAL, Arcane::ITraceMng::info(), Arcane::IPrimaryMesh::initialAllocator(), and Arcane::IMeshBase::traceMng().

Here is the call graph for this function:

◆ setInfos2D() [1/2]

void Arcane::CartesianMeshAllocateBuildInfo::setInfos2D ( const Int64x2 & global_nb_cells,
const Int32x2 & own_nb_cells,
const Int64x2 & first_own_cell_offset,
Int64 cell_unique_id_offset )

Sets the information for a 2D mesh.

Definition at line 193 of file CartesianMeshAllocateBuildInfo.cc.

◆ setInfos2D() [2/2]

void Arcane::CartesianMeshAllocateBuildInfo::setInfos2D ( std::array< Int64, 2 > global_nb_cells,
std::array< Int32, 2 > own_nb_cells,
Int64 cell_unique_id_offset,
Int64 node_unique_id_offset )

Sets the information for a 2D mesh.

Definition at line 180 of file CartesianMeshAllocateBuildInfo.cc.

References setInfos2D().

Referenced by setInfos2D().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setInfos3D() [1/2]

void Arcane::CartesianMeshAllocateBuildInfo::setInfos3D ( const Int64x3 & global_nb_cells,
const Int32x3 & own_nb_cells,
const Int64x3 & first_own_cell_offset,
Int64 cell_unique_id_offset )

Sets the information for a 3D mesh.

Definition at line 223 of file CartesianMeshAllocateBuildInfo.cc.

◆ setInfos3D() [2/2]

void Arcane::CartesianMeshAllocateBuildInfo::setInfos3D ( std::array< Int64, 3 > global_nb_cells,
std::array< Int32, 3 > own_nb_cells,
Int64 cell_unique_id_offset,
Int64 node_unique_id_offset )

Sets the information for a 3D mesh.

Definition at line 210 of file CartesianMeshAllocateBuildInfo.cc.

References setInfos3D().

Referenced by setInfos3D().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_p

Impl* Arcane::CartesianMeshAllocateBuildInfo::m_p = nullptr
private

Definition at line 101 of file CartesianMeshAllocateBuildInfo.h.


The documentation for this class was generated from the following files: