Skip to content
Snippets Groups Projects
Commit b2abb190 authored by Youett, Jonathan's avatar Youett, Jonathan Committed by akbib@FU-BERLIN.DE
Browse files

avoid compiler warnings

[[Imported from SVN: r8021]]
parent db7c394e
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,6 @@ template<class Basis, class TargetSpace, class CoefficientType>
void GlobalGFETestFunction<Basis,TargetSpace,CoefficientType>::evaluateLocal(const Element& element, const Dune::FieldVector<ctype,gridDim>& local,
EmbeddedTangentVector& out) const
{
int numOfBasisFct = basis_.getLocalFiniteElement(element).localBasis().size();
// values of the test basis functions
std::vector<Dune::array<EmbeddedTangentVector, tangentDim> > values;
......@@ -79,7 +77,7 @@ void GlobalGFETestFunction<Basis,TargetSpace,CoefficientType>::evaluateLocal(con
// multiply values with the corresponding test coefficients and sum them up
out = 0;
for (int i=0; i<values.size(); i++) {
for (size_t i=0; i<values.size(); i++) {
int index = basis_.index(element,i);
for (int j=0; j<tangentDim; j++) {
values[i][j] *= coefficients_[index][j];
......
......@@ -192,7 +192,7 @@ void LocalGfeTestFunctionBasis<LocalFiniteElement,TargetSpace>::evaluateJacobian
// Add that to the result.
for (int k=0; k<embeddedDim; k++)
for (int l=0; l<embeddedDim; l++)
for (size_t m=0; m<dim; m++)
for (int m=0; m<dim; m++)
out[i][j][k][m] += derivative[k][l][m] * basisVectors[j][l];
}
}
......
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