23 #include <dolfin/log/log.h> 24 #include <dolfin/common/MPI.h> 25 #include <dolfin/mesh/Mesh.h> 59 {
return create(MPI_COMM_WORLD, p, n, cell_type); }
82 static Mesh create(MPI_Comm comm,
const std::array<Point, 2>& p,
86 if (cell_type == CellType::Type::tetrahedron)
87 build_tet(mesh, p, n);
88 else if (cell_type == CellType::Type::hexahedron)
89 build_hex(mesh, p, n);
94 "Wrong cell type '%d'", cell_type);
125 std::size_t nx, std::size_t ny, std::size_t nz);
154 std::size_t nx, std::size_t ny, std::size_t nz);
159 static void build_tet(
Mesh& mesh,
const std::array<Point, 2>& p,
160 std::array<std::size_t, 3> n);
162 static void build_hex(
Mesh& mesh,
const std::array<Point, 2>& p,
163 std::array<std::size_t, 3> n);
static Mesh create(const std::array< Point, 2 > &p, std::array< std::size_t, 3 > n, CellType::Type cell_type)
Definition: BoxMesh.h:58
static Mesh create(MPI_Comm comm, const std::array< Point, 2 > &p, std::array< std::size_t, 3 > n, CellType::Type cell_type)
Definition: BoxMesh.h:82
Type
Enum for different cell types.
Definition: CellType.h:51
void dolfin_error(std::string location, std::string task, std::string reason,...)
Definition: log.cpp:129
BoxMesh(const Point &p0, const Point &p1, std::size_t nx, std::size_t ny, std::size_t nz)
Definition: BoxMesh.cpp:37