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