Skip to content
Snippets Groups Projects
Commit 3388cdd1 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

bugfix: can't assign a row vector to a column vector

[[Imported from SVN: r6294]]
parent a6c5fa8e
Branches
No related tags found
No related merge requests found
...@@ -164,7 +164,10 @@ public: ...@@ -164,7 +164,10 @@ public:
row[0] = b.globalCoordinates(); row[0] = b.globalCoordinates();
row *= secondDerivativeOfArcCosSquared(sp); row *= secondDerivativeOfArcCosSquared(sp);
Dune::FieldMatrix<double,dim,1> column = b.projectOntoTangentSpace(a.globalCoordinates()); Dune::FieldVector<double,dim> tmp = b.projectOntoTangentSpace(a.globalCoordinates());
Dune::FieldMatrix<double,dim,1> column;
for (int i=0; i<dim; i++) // turn row vector into column vector
column[i] = tmp[i];
Dune::FieldMatrix<double,dim,dim> A; Dune::FieldMatrix<double,dim,dim> A;
// A = row * column // A = row * column
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment