42 if (
BC.type(*
v)==
"dir"){
44 }
else if (
BC.type(*
v)==
"neu"){
55 if (
BC.type(*
e)==
"dir"){
57 }
else if (
BC.type(*
e)==
"neu"){
73 assert(
c.size() >= 2 &&
c.size()%2 == 0);
86 while (
idx<
int(
c.size()) &&
int(
c[
idx])<=
i);
98 assert(
c.size() >= 2 &&
c.size()%2 == 0);
100 Eigen::ArrayXi
dofs = Eigen::ArrayXi::LinSpaced(
N, 0,
N-1);
101 Eigen::ArrayXi
map = -Eigen::ArrayXi::Ones(
N);
105 for (
size_t i = 1;
i <
c.size()-1;
i += 2){
128template<
typename VecType>
132 const std::vector<std::pair<size_t,size_t>> &
sec
139 for (
size_t i=0;
i <
sec.size();
i++){
The BoundaryConditions class provides definition of boundary conditions.
Definition BoundaryConditions.hpp:45
Base class for global DOF spaces. Provides functions to manipulate global DOFs (the local version bei...
Definition globaldofspace.hpp:16
for i
Definition convergence_analysis.m:48
VecType replaceSectionsVector(const VecType &V, const VecType &Z, const std::vector< std::pair< size_t, size_t > > &sec)
Replace sections of vector V by values from vector Z into vector V; the sections are determined by 's...
Definition BChandlers.hpp:129
void setBCLabels(const BoundaryConditions &BC, GlobalDOFSpace &globaldofspace)
Adds BC labels do GlobalDOFSpace DOFs. The default label is 0; we leave it 0 for internal DOF,...
Definition BChandlers.hpp:38
Eigen::ArrayXi create_mapDOF(const std::vector< size_t > &c, const size_t N)
Create a map from DOFs 0..N-1 to values obtained by cutting the DOFs corresponding to c (as per offse...
Definition BChandlers.hpp:97
int offsetIndex(const std::vector< size_t > &c, const int &i)
Function to offset and index i according to a vector c0,c1,...,c2n of increasing numbers.
Definition BChandlers.hpp:72
depending on the Matrix Market format indicated by or array(dense array storage). The data will be duplicated % as appropriate if symmetry is indicated in the header. % % Optionally
Definition mhd-solutions.hpp:9
static auto v
Definition ddrcore-test.hpp:32