UnitSquareMesh_create¶
-
dolfin.cpp.mesh.
UnitSquareMesh_create
()¶ Create a uniform finite element
Mesh
over the unit square [0,1] x [0,1].auto mesh1 = UnitSquareMesh::create(MPI_COMM_WORLD, 32, 32); auto mesh2 = UnitSquareMesh::create(MPI_COMM_WORLD, 32, 32, "crossed");
Parameters: - comm (MPI_Comm) – (MPI_Comm)
MPI
communicator - std::size_t, 2 > n (std::array<) – (std:::array<std::size_t, 2>) Number of cells in each direction.
- cell_type (CellType::Type) – Triangle or quadrilateral.
- diagonal (std::string) – (std::string) Optional argument: A std::string indicating the direction of the diagonals.
Return type: - comm (MPI_Comm) – (MPI_Comm)