UnitIntervalMesh_create

dolfin.cpp.mesh.UnitIntervalMesh_create()

Factory

// Create a mesh of 25 cells in the interval [0,1]
auto mesh = UnitIntervalMesh::create(MPI_COMM_WORLD, 25);
Parameters:
  • comm (MPI_Comm) – (MPI_Comm) MPI communicator
  • n (std::size_t) – (std::size_t) The number of cells.
Return type:

Mesh