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

bugfix in getResultantForce: get index of correct cross-section orientation...

bugfix in getResultantForce: get index of correct cross-section orientation from the index set instead of having 0 hardwired here

[[Imported from SVN: r1594]]
parent 4f32316b
No related branches found
No related tags found
No related merge requests found
......@@ -418,7 +418,7 @@ getLocalMatrix( EntityPointer &entity,
du_dvij[i][j][m] += 2 * ( q.B(m)*(q.mult(dq_dvij_ds[i][j]) + q_s.mult(tmp)));
}
#if 0
#if 1
for (int k=0; k<2; k++) {
for (int l=0; l<3; l++) {
......@@ -1527,6 +1527,9 @@ getResultantForce(const BoundaryPatch<GridType>& boundary,
{
using namespace Dune;
if (grid_ != &boundary.getGrid())
DUNE_THROW(Dune::Exception, "The boundary patch has to match the grid of the assembler!");
const typename GridType::Traits::LeafIndexSet& indexSet = grid_->leafIndexSet();
if (sol.size()!=indexSet.size(gridDim))
......@@ -1569,9 +1572,8 @@ getResultantForce(const BoundaryPatch<GridType>& boundary,
// Transform stress given with respect to the basis given by the three directors to
// the canonical basis of R^3
/** \todo Hardwired: Entry 0 is the leftmost entry! */
FieldMatrix<double,3,3> orientationMatrix;
sol[0].q.matrix(orientationMatrix);
sol[indexSet.template subIndex<1>(*eIt,nIt.numberInSelf())].q.matrix(orientationMatrix);
orientationMatrix.umv(localStress, canonicalStress);
......
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