PolyFEM
Loading...
Searching...
No Matches
Basis.cpp
Go to the documentation of this file.
2
3#include <iostream>
4
5namespace polyfem
6{
7 namespace basis
8 {
10 : order_(-1)
11 {
12 }
13
14 void Basis::init(const int order, const int global_index, const int local_index, const RowVectorNd &node)
15 {
16 order_ = order;
17 global_.resize(1);
18 global_.front().index = global_index;
19 global_.front().val = 1;
20 global_.front().node = node;
21
22 local_index_ = local_index;
23 }
24 } // namespace basis
25} // namespace polyfem
int order() const
Definition Basis.hpp:112
void init(const int order, const int global_index, const int local_index, const RowVectorNd &node)
Initialize a basis function within an element.
Definition Basis.cpp:14
std::vector< Local2Global > global_
list of real nodes influencing the basis
Definition Basis.hpp:125
int local_index_
local index inside the element (for debugging purposes)
Definition Basis.hpp:126
Eigen::Matrix< double, 1, Eigen::Dynamic, Eigen::RowMajor, 1, 3 > RowVectorNd
Definition Types.hpp:13