Skip to content
Snippets Groups Projects
Commit 2942f245 authored by Markus Blatt's avatar Markus Blatt
Browse files

Merge branch 'fix/anisotropic-unused-variable-warning' into 'master'

[Warnings] Fix set-but-unused variables in anisotropic.hh's setBoundary().

See merge request core/dune-istl!124
parents 5d842379 2aae8fa8
No related branches found
No related tags found
No related merge requests found
......@@ -147,24 +147,10 @@ void setBoundary(V& lhs, V& rhs, const G& n, Dune::ParallelIndexSet<G,L,s>& indi
template<class V, class G>
void setBoundary(V& lhs, V& rhs, const G& N)
{
typedef typename V::block_type Block;
typedef typename Block::value_type T;
for(int j=0; j < N; ++j)
for(int i=0; i < N; i++)
if(i==0 || j ==0 || i==N-1 || j==N-1) {
T h = 1.0 / ((double) (N-1));
T x, y;
if(i==N-1)
x=1;
else
x = ((T) i)*h;
if(j==N-1)
y = 1;
else
y = ((T) j)*h;
lhs[j*N+i]=rhs[j*N+i]=0; //x*y;
}
if(i==0 || j ==0 || i==N-1 || j==N-1)
lhs[j*N+i]=rhs[j*N+i]=0;
}
template<class M, class G, class L, class C, int s>
......
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