36 #ifndef GETFEM_LEVEL_SET_H__
37 #define GETFEM_LEVEL_SET_H__
57 std::vector<scalar_type> primary_, secondary_;
68 void set_shift(scalar_type shift_ls_)
69 { shift_ls = shift_ls_; }
70 scalar_type get_shift(
void)
const {
return shift_ls; }
71 void simplify(scalar_type eps = 0.01);
74 std::vector<scalar_type> &values(
unsigned i = 0)
75 {
return (i == 0) ? primary_ : secondary_; }
76 const std::vector<scalar_type> &values(
unsigned i = 0)
const
77 {
return (i == 0) ? primary_ : secondary_; }
79 pmesher_signed_distance mls_of_convex(
size_type cv,
unsigned lsnum = 0,
80 bool inverted =
false)
const;
81 bool has_secondary(
void)
const {
return with_secondary; }
82 const mesh_fem &get_mesh_fem(
void)
const {
return *mf; }
83 const mesh &linked_mesh()
const {
return mf->
linked_mesh(); }
84 dim_type degree()
const {
return degree_; }
85 level_set(
const mesh &msh, dim_type deg = dim_type(1),
86 bool with_secondary_ =
false);
87 level_set(
const level_set &ls);
88 level_set &operator =(
const level_set &ls);
95 const level_set &dummy_level_set();
base class for static stored objects
Deal with interdependencies of objects.
void update_from_context(void) const
this function has to be defined and should update the object when the context is modified.
Describe a finite element method linked to a mesh.
const mesh & linked_mesh() const
Return a reference to the underlying mesh.
Define the getfem::mesh_fem class.
size_t size_type
used as the common size type in the library
GEneric Tool for Finite Element Methods.