Skip to content
Snippets Groups Projects
Verified Commit 3ff31c7f authored by Tobias Merkel's avatar Tobias Merkel
Browse files

[789-deprecate-content-of-globaldefinitions] row::n -> row::NumberOfDofs

parent a8891df8
No related branches found
No related tags found
No related merge requests found
......@@ -17,15 +17,15 @@ RMatrix getRMatrixFromCell(const Matrix &A, const Cell &C) {
int n = 0;
for (int i = 0; i < R.size(); ++i) {
R[i] = A.find_row(z[i]);
n += R[i].n();
n += R[i].NumberOfDofs();
}
RMatrix a(0.0, n, n);
std::vector<double> &data = a.Data();
for (int i = 0, j = 0; i < R.size(); ++i)
for (int k = 0; k < R[i].n(); ++k, ++j)
for (int i1 = 0, j1 = 0; i1 < R.size(); ++i1)
for (int k1 = 0; k1 < R[i1].n(); ++k1, ++j1)
data[n * j + j1] = A(R[i], R[i1])[k * R[i1].n() + k1];
for (int k = 0; k < R[i].NumberOfDofs(); ++k, ++j)
for (int i1 = 0, j1 = 0; i1 < R.size(); ++i1)
for (int k1 = 0; k1 < R[i1].NumberOfDofs(); ++k1, ++j1)
data[n * j + j1] = A(R[i], R[i1])[k * R[i1].NumberOfDofs() + k1];
return a;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment