DOLFIN
DOLFIN C++ interface
SphericalShellMesh.h
1// Copyright (C) 2015 Chris Richardson
2//
3// This file is part of DOLFIN.
4//
5// DOLFIN is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// DOLFIN is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17//
18
19#ifndef __SPHERICAL_SHELL_MESH_H
20#define __SPHERICAL_SHELL_MESH_H
21
22#include <dolfin/common/MPI.h>
23#include <dolfin/mesh/Mesh.h>
24
25namespace dolfin
26{
27
30
32 {
33 public:
34
36 static Mesh create(MPI_Comm comm, std::size_t degree)
37 {
38 Mesh mesh(comm);
39 build(mesh, degree);
40 return mesh;
41 }
42
43 private:
44
45 static void build(Mesh& mesh, std::size_t degree);
46
47 };
48
49}
50
51#endif
Definition: Mesh.h:84
Definition: SphericalShellMesh.h:32
static Mesh create(MPI_Comm comm, std::size_t degree)
Create a spherical shell manifold for testing.
Definition: SphericalShellMesh.h:36
Definition: adapt.h:30