64 int const idx_bhe_unknowns,
65 Eigen::MatrixBase<SingleUnknownMatrixType>
const& matBHE_loc_R,
66 Eigen::MatrixBase<RMatrixType>& R_matrix,
67 Eigen::MatrixBase<RPiSMatrixType>& R_pi_s_matrix,
68 Eigen::MatrixBase<RSMatrixType>& R_s_matrix)
70 switch (idx_bhe_unknowns)
73 R_matrix.block(0, 2 * NPoints, NPoints, NPoints) +=
75 R_matrix.block(2 * NPoints, 0, NPoints, NPoints) +=
78 R_matrix.block(0, 0, NPoints, NPoints) +=
80 R_matrix.block(2 * NPoints,
83 NPoints) += 1.0 * matBHE_loc_R;
86 R_matrix.block(0, NPoints, NPoints, NPoints) +=
88 R_matrix.block(NPoints, 0, NPoints, NPoints) +=
91 R_matrix.block(0, 0, NPoints,
92 NPoints) += 1.0 * matBHE_loc_R;
93 R_matrix.block(NPoints, NPoints, NPoints, NPoints) +=
97 R_s_matrix += matBHE_loc_R;
99 R_pi_s_matrix.block(2 * NPoints, 0, NPoints, NPoints) +=
102 R_matrix.block(2 * NPoints, 2 * NPoints, NPoints,
103 NPoints) += matBHE_loc_R;
107 "Error!!! In the function BHE_CXA::assembleRMatrices, "
108 "the index of bhe unknowns is out of range! ");