67 int const idx_bhe_unknowns,
68 Eigen::MatrixBase<SingleUnknownMatrixType>
const& matBHE_loc_R,
69 Eigen::MatrixBase<RMatrixType>& R_matrix,
70 Eigen::MatrixBase<RPiSMatrixType>& R_pi_s_matrix,
71 Eigen::MatrixBase<RSMatrixType>& R_s_matrix)
73 switch (idx_bhe_unknowns)
76 R_matrix.block(0, 4 * NPoints, NPoints, NPoints) +=
78 R_matrix.block(4 * NPoints, 0, NPoints, NPoints) +=
81 R_matrix.block(2, 5 * NPoints, NPoints, NPoints) +=
83 R_matrix.block(5 * NPoints, 2, NPoints, NPoints) +=
86 R_matrix.block(0, 0, NPoints, NPoints) +=
88 R_matrix.block(NPoints, NPoints, NPoints, NPoints) +=
90 R_matrix.block(4 * NPoints, 4 * NPoints, NPoints, NPoints) +=
92 R_matrix.block(5 * NPoints, 5 * NPoints, NPoints, NPoints) +=
96 R_matrix.block(2 * NPoints, 6 * NPoints, NPoints, NPoints) +=
98 R_matrix.block(6 * NPoints, 2 * NPoints, NPoints, NPoints) +=
100 R_matrix.block(3 * NPoints, 7 * NPoints, NPoints, NPoints) +=
102 R_matrix.block(7 * NPoints, 3 * NPoints, NPoints, NPoints) +=
105 R_matrix.block(2 * NPoints, 2 * NPoints, NPoints, NPoints) +=
107 R_matrix.block(3 * NPoints, 3 * NPoints, NPoints, NPoints) +=
109 R_matrix.block(6 * NPoints, 6 * NPoints, NPoints, NPoints) +=
111 R_matrix.block(7 * NPoints, 7 * NPoints, NPoints, NPoints) +=
115 R_matrix.block(4 * NPoints, 6 * NPoints, NPoints, NPoints) +=
117 R_matrix.block(6 * NPoints, 4 * NPoints, NPoints, NPoints) +=
119 R_matrix.block(4 * NPoints, 7 * NPoints, NPoints, NPoints) +=
121 R_matrix.block(7 * NPoints, 4 * NPoints, NPoints, NPoints) +=
123 R_matrix.block(5 * NPoints, 6 * NPoints, NPoints, NPoints) +=
125 R_matrix.block(6 * NPoints, 5 * NPoints, NPoints, NPoints) +=
127 R_matrix.block(5 * NPoints, 7 * NPoints, NPoints, NPoints) +=
129 R_matrix.block(7 * NPoints, 5 * NPoints, NPoints, NPoints) +=
132 R_matrix.block(4 * NPoints, 4 * NPoints, NPoints, NPoints) +=
134 R_matrix.block(5 * NPoints, 5 * NPoints, NPoints, NPoints) +=
137 R_matrix.block(6 * NPoints, 6 * NPoints, NPoints, NPoints) +=
139 R_matrix.block(7 * NPoints, 7 * NPoints, NPoints, NPoints) +=
144 R_matrix.block(4 * NPoints, 5 * NPoints, NPoints, NPoints) +=
146 R_matrix.block(5 * NPoints, 4 * NPoints, NPoints, NPoints) +=
148 R_matrix.block(6 * NPoints, 7 * NPoints, NPoints, NPoints) +=
150 R_matrix.block(7 * NPoints, 6 * NPoints, NPoints, NPoints) +=
153 R_matrix.block(4 * NPoints, 4 * NPoints, NPoints, NPoints) +=
155 R_matrix.block(5 * NPoints, 5 * NPoints, NPoints, NPoints) +=
158 R_matrix.block(6 * NPoints, 6 * NPoints, NPoints, NPoints) +=
160 R_matrix.block(7 * NPoints, 7 * NPoints, NPoints, NPoints) +=
165 R_s_matrix.template block<NPoints, NPoints>(0, 0).noalias() +=
168 R_pi_s_matrix.block(4 * NPoints, 0, NPoints, NPoints) +=
170 R_pi_s_matrix.block(5 * NPoints, 0, NPoints, NPoints) +=
172 R_pi_s_matrix.block(6 * NPoints, 0, NPoints, NPoints) +=
174 R_pi_s_matrix.block(7 * NPoints, 0, NPoints, NPoints) +=
176 R_matrix.block(4 * NPoints, 4 * NPoints, NPoints, NPoints) +=
178 R_matrix.block(5 * NPoints, 5 * NPoints, NPoints, NPoints) +=
180 R_matrix.block(6 * NPoints, 6 * NPoints, NPoints, NPoints) +=
182 R_matrix.block(7 * NPoints, 7 * NPoints, NPoints, NPoints) +=
187 "Error!!! In the function BHE_2U::assembleRMatrices, "
188 "the index of bhe unknowns is out of range! ");