Medusa  1.1
Coordinate Free Mehless Method implementation
GridFill_fwd.hpp
Go to the documentation of this file.
1 #ifndef MEDUSA_BITS_DOMAINS_GRIDFILL_FWD_HPP_
2 #define MEDUSA_BITS_DOMAINS_GRIDFILL_FWD_HPP_
3 
11 #include <medusa/Config.hpp>
12 
13 namespace mm {
14 
15 template <typename vec_t>
16 class DomainDiscretization;
17 
29 template <typename vec_t>
30 class GridFill {
31  public:
32  typedef typename vec_t::scalar_t scalar_t;
33  typedef vec_t vector_t;
34  enum { dim = vec_t::dim };
36 
37  private:
38  vec_t bot;
39  vec_t top;
40 
41  public:
43  GridFill(const vec_t& bot, const vec_t& top);
44 
54  void operator()(DomainDiscretization<vec_t>& domain, const scalar_t& h, int type = 0) const;
55 };
56 
57 
58 } // namespace mm
59 
60 #endif // MEDUSA_BITS_DOMAINS_GRIDFILL_FWD_HPP_
mm
Root namespace for the whole library.
Definition: Gaussian.hpp:14
scalar_t
Scalar scalar_t
Type of the elements, alias of Scalar.
Definition: MatrixBaseAddons.hpp:16
mm::GridFill::bot
vec_t bot
Bottom left corner of the box to fill.
Definition: GridFill_fwd.hpp:38
mm::DomainDiscretization
Class representing domain discretization along with an associated shape.
Definition: DomainDiscretization_fwd.hpp:46
mm::GridFill::vector_t
vec_t vector_t
Vector type.
Definition: GridFill_fwd.hpp:33
mm::GridFill::dim
@ dim
Dimensionality of the domain.
Definition: GridFill_fwd.hpp:35
mm::GridFill::scalar_t
vec_t::scalar_t scalar_t
Scalar type;.
Definition: GridFill_fwd.hpp:32
dim
@ dim
Number of elements of this matrix.
Definition: MatrixBaseAddons.hpp:14
mm::GridFill::GridFill
GridFill(const vec_t &bot, const vec_t &top)
Prepare to fill domain within [bot, top] bounding box.
Definition: GridFill.hpp:18
Config.hpp
mm::GridFill
Discretizes the domain using n-dimensional grid with given endpoints and spacing h.
Definition: GridFill_fwd.hpp:30
mm::GridFill::top
vec_t top
Top right corner of the box to fill.
Definition: GridFill_fwd.hpp:39
mm::GridFill::operator()
void operator()(DomainDiscretization< vec_t > &domain, const scalar_t &h, int type=0) const
Fills domain with a grid node distribution with spacing h.
Definition: GridFill.hpp:25