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

get rid of method getNeighborsPerVertex. It already exists in the base class

[[Imported from SVN: r5694]]
parent 2b7f0c3d
No related branches found
No related tags found
No related merge requests found
......@@ -214,39 +214,6 @@ getResultantForce(const BoundaryPatchBase<PatchGridView>& boundary,
}
template <class GridView>
void PlanarRodAssembler<GridView>::getNeighborsPerVertex(Dune::MatrixIndexSet& nb) const
{
const int gridDim = GridView::dimension;
const typename GridView::IndexSet& indexSet = this->gridView_.indexSet();
int i, j;
int n = this->gridView_.size(gridDim);
nb.resize(n, n);
ElementIterator it = this->gridView_.template begin<0>();
ElementIterator endit = this->gridView_.template end<0> ();
for (; it!=endit; ++it) {
for (i=0; i<it->template count<gridDim>(); i++) {
for (j=0; j<it->template count<gridDim>(); j++) {
int iIdx = indexSet.subIndex(*it,i,gridDim);
int jIdx = indexSet.subIndex(*it,j,gridDim);
nb.add(iIdx, jIdx);
}
}
}
}
template <class GridView>
void PlanarRodAssembler<GridView>::
assembleMatrix(const std::vector<RigidBodyMotion<2> >& sol,
......@@ -255,7 +222,7 @@ assembleMatrix(const std::vector<RigidBodyMotion<2> >& sol,
const typename GridView::IndexSet& indexSet = this->gridView_.indexSet();
Dune::MatrixIndexSet neighborsPerVertex;
getNeighborsPerVertex(neighborsPerVertex);
this->getNeighborsPerVertex(neighborsPerVertex);
matrix = 0;
......
......@@ -132,8 +132,6 @@ public:
/** \brief Compute the energy of a deformation state */
double computeEnergy(const std::vector<RigidBodyMotion<2> >& sol) const;
void getNeighborsPerVertex(Dune::MatrixIndexSet& nb) const;
protected:
/** \brief Compute the element tangent stiffness matrix */
......
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