63 int const idx_bhe_unknowns,
64 Eigen::MatrixBase<SingleUnknownMatrixType>
const& matBHE_loc_R,
65 Eigen::MatrixBase<RMatrixType>& R_matrix,
66 Eigen::MatrixBase<RPiSMatrixType>& R_pi_s_matrix,
67 Eigen::MatrixBase<RSMatrixType>& R_s_matrix)
69 switch (idx_bhe_unknowns)
72 R_matrix.block(0, NPoints, NPoints, NPoints) +=
74 R_matrix.block(NPoints, 0, NPoints, NPoints) +=
77 R_matrix.block(0, 0, NPoints,
78 NPoints) += 1.0 * matBHE_loc_R;
79 R_matrix.block(NPoints, NPoints, NPoints, NPoints) +=
83 R_matrix.block(NPoints, 2 * NPoints, NPoints, NPoints) +=
85 R_matrix.block(2 * NPoints, NPoints, NPoints, NPoints) +=
88 R_matrix.block(NPoints, NPoints, NPoints, NPoints) +=
90 R_matrix.block(2 * NPoints,
93 NPoints) += 1.0 * matBHE_loc_R;
96 R_s_matrix += matBHE_loc_R;
98 R_pi_s_matrix.block(2 * NPoints, 0, NPoints, NPoints) +=
101 R_matrix.block(2 * NPoints, 2 * NPoints, NPoints,
102 NPoints) += matBHE_loc_R;
106 "Error!!! In the function BHE_CXC::assembleRMatrices, "
107 "the index of bhe unknowns is out of range! ");