omega_h
Reliable mesh adaptation
Omega_h_mesh2d.hpp
1 #ifndef OMEGA_H_2DMESH_HPP
2 #define OMEGA_H_2DMESH_HPP
3 
4 #include <Omega_h_mesh.hpp>
5 
6 namespace Omega_h {
7 
8 class Mesh2D final : public Mesh {
9 public:
10  Mesh2D() = default;
11  explicit Mesh2D(Library* library) : Mesh(library) {}
12 
13  void set_dim(Int dim_in) override;
14 
15  [[nodiscard]] inline Int dim() const override {
16  OMEGA_H_CHECK(0 <= dim_ && dim_ <= 2);
17  return dim_;
18  }
19 };
20 
21 } // Omega_h
22 
23 #endif //OMEGA_H_2DMESH_HPP
Definition: Omega_h_library.hpp:10
Definition: Omega_h_mesh2d.hpp:8
Definition: Omega_h_mesh.hpp:35
Definition: amr_mpi_test.cpp:6