Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.3.0/v0.9.0/cpp
DOLFINx  0.3.0
DOLFINx C++ interface
Functions
dolfinx::generation::IntervalMesh Namespace Reference

Interval mesh creation. More...

Functions

mesh::Mesh create (MPI_Comm comm, std::size_t n, std::array< double, 2 > x, const mesh::GhostMode ghost_mode, const mesh::CellPartitionFunction &partitioner=static_cast< graph::AdjacencyList< std::int32_t >(*)(MPI_Comm, int, int, const graph::AdjacencyList< std::int64_t > &, mesh::GhostMode)>(&mesh::partition_cells_graph))
 Interval mesh of the 1D line [a, b]. Given n cells in the axial direction, the total number of intervals will be n and the total number of vertices will be n + 1. More...
 

Detailed Description

Interval mesh creation.

Function Documentation

◆ create()

mesh::Mesh dolfinx::generation::IntervalMesh::create ( MPI_Comm  comm,
std::size_t  n,
std::array< double, 2 >  x,
const mesh::GhostMode  ghost_mode,
const mesh::CellPartitionFunction partitioner = static_cast<graph::AdjacencyList<std::int32_t> (*)(           MPI_Comm, int, int, const graph::AdjacencyList<std::int64_t>&,           mesh::GhostMode)>(&mesh::partition_cells_graph) 
)

Interval mesh of the 1D line [a, b]. Given n cells in the axial direction, the total number of intervals will be n and the total number of vertices will be n + 1.

Parameters
[in]commMPI communicator to build the mesh on
[in]nThe number of cells
[in]xThe end points of the interval
[in]ghost_modeGhosting mode
[in]partitionerPartitioning function to use for determining the parallel distribution of cells across MPI ranks
Returns
A mesh